文章 2022-11-30 来自:开发者社区

TypeError: sequence item 0: expected string, int found

不多说直接展示一段python片段,运行报错:list中有数字,不能直接转为strnumbers = [1,2,3,4] print 'numberList'.join(numbers)解决方式print (",".join('%s' %id for id in numbers)) #或者 print 'numberList:' + "".join(str(numbers))输出1,2,3,...

问答 2021-10-28 来自:开发者社区

Python报错TypeError: expected string or bytes-like o

Python报错TypeError: expected string or bytes-like object

本页面内关键词为智能算法引擎基于机器学习所生成,如有任何问题,可在页面下方点击"联系我们"与我们沟通。

开发与运维

集结各类场景实战经验,助你开发运维畅行无忧

+关注