Je veux juger que python n'inclut pas la chaîne de caractères "mm"
http://stackoverflow.com/questions/3437059/does-python-have-a-string-contains-substring-method
http://ideone.com/yCVsHS
test.py
text = "hello"
print text
if "ll" in text:
print "including ll"
if "mm" not in text:
print "not including mm"
résultat
Success time: 0.03 memory: 44680 signal:0
hello
including ll
not including mm
Recommended Posts