str = "0123456"
if str.find("8")!=-1 or str.find("3")!=-1:
print "YES!"
else:
print "NO!"
会输出"YES!"
str = "0123456"
if str.find("8")!=-1 or str.find("3")!=-1:
print "YES!"
else:
print "NO!"
会输出"YES!"
转载于:https://www.cnblogs.com/52hadoop/p/3457078.html