def country_from_name(name):
countrydict = COUNTRY_DICT
is_country_in_here = [x for x in countrydict.keys() if x in name.lower()]
country = ''
if is_country_in_here:
country = string.capwords(is_country_in_here[0])
return country
评论列表
文章目录