W3School TIY Editor
W3School 在线教程
改变方向
暗黑模式
python_string_format_1.py:
age = 63 txt = "My name is Bill, and I am {}" print(txt.format(age))
x
age
=
63
txt
=
"My name is Bill, and I am {}"
print
(
txt
.
format
(
age
))