只需要检查a里面有“左”还是“右”就行了吧,
a=raw_input()if "左" in a: print "这是左边的门"if "右" in a: print "这是右边的门"
#in 就可以判断了t1= ('左','左边','打开左边','左边门')a= raw_input()if a in t1: print "a in t1"else: print "a not in t1"
if tuple1[n ] in tuple2: pass else: pass