标签:ted 字段 print str1 tty bcd 查找 意思 span
sStr1 = ‘abcdefg‘ sStr2 = ‘cde‘ print sStr1.find(sStr2)输出 2意思是在sStr1字符里的第2位置找到了包含cde字符的字段
python查找字符串 函数find() 用法
原文地址:https://www.cnblogs.com/kaibindirver/p/9689805.html