python: TypeError: not enough arguments for format string

  File "train.py", line 191, in main
    print('%s:%s' % key, value)
TypeError: not enough arguments for format string

对后面参数加上括号

print('%s:%s' % (key, value))
原文地址:https://www.cnblogs.com/christy99cc/p/11291308.html