TypeError: not all arguments converted during string formatting

Posted 天际凯迪

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了TypeError: not all arguments converted during string formatting相关的知识,希望对你有一定的参考价值。

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的主要内容,如果未能解决你的问题,请参考以下文章

TypeError: not all arguments converted during string formatting

TypeError not all arguments converted during string formatt

关于Python的TypeError not all arguments converted during string formatting

flask渲染模板时报错TypeError: 'UnboundField' object is not callable

TypeError: 'str' object is not callable

TypeError: 'QueryDict' object is not callable