More than one format in the string

2019-06-19 20:04栏目:技术创新

#If there is more than one format in the string, you need to pass a tuple as right
# operand, as in this example:

table = {'A': 4127, 'B': 4098, 'C': 7678}
for name, phone in table.items():
     print '%-10s ==> d' % (name, phone)

版权声明:本文由新浦京娱乐站_新浦京娱乐场官网_新浦京娱乐发布于技术创新,转载请注明出处:More than one format in the string