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))
说明前后%和后面的参数数量不对应.红色就是错误的地方。
TypeError: not all arguments converted during string formatting
原文:http://www.cnblogs.com/kaid/p/7992191.html