主页
Python
Python 字符串格式化
demo_string_formatting1
运行 ❯
×
更改方向
保存代码
更改主题
price = 49 txt = "The price is {} dollars" print(txt.format(price))
The price is 49 dollars