shauna570392

2021-04-25   阅读量: 4863

Python

Python报错 list object has no attribute find

扫码加入数据分析学习群

image.png


.find()是字符串的方法,返回查找的值在字符串中的索引位置。

image.png


列表对象没有.find()这个方法,列表使用in 或者 not in 查看某个对象在不在列表中:

image.png

85.7143 1 0 关注作者 收藏

评论(0)


暂无数据

推荐课程

推荐帖子