Ich möchte beurteilen, dass Python nicht die Zeichenfolge "mm" enthält.
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"
Ergebnis
Success time: 0.03 memory: 44680 signal:0
hello
including ll
not including mm
Recommended Posts