主页
Python
Python 字符串
demo_string_format1
运行 ❯
×
更改方向
保存代码
更改主题
age = 36 txt = "My name is John, and I am {}" print(txt.format(age))
My name is John, and I am 36