python 定位

#字符串定位

使用str.find()

其结果为如下:

#列表中元素的定位

使用list.index()

其结果如下:

原文地址:https://www.cnblogs.com/suyun1219/p/10882194.html