python教程

时间:2026年02月08日 00:05:49

Python find()方法 | 菜鸟教程

#!/usr/bin/pythonstr1= this is string example....wow!!! ;str2= exam ;printstr1.find(str2);printstr1.find(str2,10);printstr1.find(str2,40);.Python find()方法 Pyt...

Python enumerate() 函数 | 菜鸟教程

Python enumerate() 函数 Python 内置函数 描述 enumerate() 函数用于将一个可遍历的数据对象(如列表、元组或字符串)组合为一个索引序列,同时列出数据和数据下标,一般用在 ...