我有一个清单。我想检查它是否包含数字
list1 = [u'Studied at ', u'South City College, Kolkata', u'Class of 2012',
u'Lives in ', u'Calcutta, India', u'From ', u'Calcutta, India']
>>> if re.match(r'[\w-]+$', str(list1)):
print "contains a number"
else:
print "does not contain number"
它不包含任何数字。需要一些帮助。我希望输出为“2012”