W3School TIY Editor
W3School 在线教程
改变方向
暗黑模式
python_string_format_3.py:
quantity = 5 itemno = 789 price = 24.36 myorder = "I want to pay {2} dollars for {0} pieces of item {1}." print(myorder.format(quantity, itemno, price))