pythonで"mm"という文字列を含まないという判断をしたい
test.py
text = "hello"
print text
if "ll" in text:
print "including ll"
if "mm" not in text:
print "not including mm"
結果
Success time: 0.03 memory: 44680 signal:0
hello
including ll
not including mm
Go to list of users who liked
More than 5 years have passed since last update.
pythonで"mm"という文字列を含まないという判断をしたい
text = "hello"
print text
if "ll" in text:
print "including ll"
if "mm" not in text:
print "not including mm"
Success time: 0.03 memory: 44680 signal:0
hello
including ll
not including mm
Register as a new user and use Qiita more conveniently
Go to list of users who liked