python format使用 发表于 2018-07-Sat | 阅读次数: 12345678>>>"{} {}".format("hello", "world") # 不设置指定位置,按默认顺序'hello world' >>> "{0} {1}".format("hello", "world") # 设置指定位置'hello world' >>> "{1} {0} {1}".format("hello", "world") # 设置指定位置'world hello world'请作者喝一杯咖啡☕️打赏微信支付