Discuss / Python / 那我就给大家提供最复杂的答案

那我就给大家提供最复杂的答案

Topic source

两题通用答案!!  ↓

    return re.findall(r'.*?([\w\s]+).*?([^\w\s@<>.]?)', addr).copy()[0][0] if re.findall(r'.*?([\w\s]+).*?([^\w\s@<>.]?)', addr) and not re.findall(r'.*?([\w\s]+).*?([^\w\s@<>.]?)', addr).copy()[0][1] else False

强行写在了一行可读性为0、2333


  • 1

Reply