python判斷字符串中是否包含子字符串

python判斷字符串中是否包含子字符串python

s = '1234問沃爾沃434'
if s.find('沃爾沃') != -1:
    print('存在')
else:
    print('不存在')

字符串

相關文章
相關標籤/搜索