TypeError: not all arguments converted during string formatting
时间:2017-12-06 13:50:22
收藏:0
阅读:282
print ("So, you‘re 5r old, %r tall and %r heavy." % (age, height, weight))
print ("So, you‘re %r old, %r tall and %r heavy." % (age, height, weight))
说明前后%和后面的参数数量不对应.红色就是错误的地方。
原文:http://www.cnblogs.com/kaid/p/7992191.html
评论(0)