python: sequence item 0: expected str instance, int found

 

 sequence item 0: expected str instance, int found

list_s.append(i)改为
list_s.append(str(i))

str类型数据颠倒:
adc="0123456"

adc[::-1]



posted @ 2022-12-01 09:30  大人的春天  阅读(178)  评论(0编辑  收藏  举报