原文:[已解决]报错: TypeError: sequence item 0: expected str instance, int found

今天敲小例子,报了错TypeError: sequence item : expected str instance, int found 小例子 以为会打印 two three 结果报了错 上网查了资料,说list包含数字,不能直接转化成字符串。 解决办法: 即遍历list的元素,把他转化成字符串。这样就能成功输出 two three 结果了。 from: https: blog.csdn.ne ...

2020-06-07 22:33 0 3211 推荐指数:

查看详情

 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM