解决python中TypeError: not enough arguments for format string
解决python中TypeError: not enough arguments for format string
格式化字符串时,%后面的内容要用小括号括起来
# right
print('I and %s and % and %s' % (people1,people2,people3))
# wrong
print('I and %s and % and %s' % people1,people2,people3)
浙公网安备 33010602011771号