python 多个 %s 例子

input = '{"a" : %s, "b" : "%s", "c": "1"}'  % (1234, 14289)

input 为:

'{"a" : 1234, "b" : "14289", "c": "1"}'
原文地址:https://www.cnblogs.com/pinganzi/p/6211340.html