使用in方法:
testStr = 'helloworld'
if 'world' in testStr:
print ('Exist')
else:
print ('Not exist')
CSDN官方学习推荐 ↓ ↓ ↓
CSDN出的Python全栈知识图谱,太强了,推荐给大家!
使用in方法:
testStr = 'helloworld'
if 'world' in testStr:
print ('Exist')
else:
print ('Not exist')
CSDN官方学习推荐 ↓ ↓ ↓
CSDN出的Python全栈知识图谱,太强了,推荐给大家!
微信扫码登录