Study Notes (26): Python Interview 100 talking about (based Python3.x) - Use fstring way to format string

Learning immediately: https://edu.csdn.net/course/play/26755/340140?utm_source=blogtoedu

fstring mode format string

s = f "I was {name}, {age} years old I am."

{} May be a member in the variable, function or class

Published 25 original articles · won praise 0 · Views 104

Guess you like

Origin blog.csdn.net/wuchuang19/article/details/104245126