我有以下内容:
temp = "aaaab123xyz@+" lists = ["abc", "123.35", "xyz", "AND+"] for list in lists if re.match(list, temp, re.I): print "The %s is within %s." % (list,temp)
re.match只匹配字符串的开头,如何在中间匹配子字符串.
python match
match ×1
python ×1