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
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!