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

On the back of parameters parentheses

print('%s:%s' % (key, value))

 

Guess you like

Origin www.cnblogs.com/christy99cc/p/11291308.html