W3School TIY Editor
W3School 在线教程
改变方向
暗黑模式
python_string_formatting_3.py:
quantity = 3 itemno = 567 price = 52 myorder = "I want {} pieces of item number {} for {:.2f} dollars." print(myorder.format(quantity, itemno, price))