if '<' in addr: temp = re.match(r'^(\<)(\w\s?\w)(>\s?\w)@(\w.\w)$',addr).group(2) print(temp) else: temp = re.match(r'^(\w)@(\w.\w)$',addr).group(1) print(temp)
Sign in to make a reply
晚起的虫子不被吃1
if '<' in addr: temp = re.match(r'^(\<)(\w\s?\w)(>\s?\w)@(\w.\w)$',addr).group(2) print(temp) else: temp = re.match(r'^(\w)@(\w.\w)$',addr).group(1) print(temp)