christy99cc

导航

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))

 

posted on 2019-08-02 21:28  christy99cc  阅读(1057)  评论(0)    收藏  举报