赵乾舟 发表于 2021-8-15 15:41:18

查找字符串

s1='aabbxuebixuebi'
s2='ab'
s3='xue'
print(s1.find(s2))#1
print(s1.find(s3))#4



页: [1]
查看完整版本: 查找字符串