zhangyunhao116 / zmail

Zmail makes it easier to send and retrieve emails in python3
MIT License
433 stars 112 forks source link

正则错误 #113

Closed epirus closed 3 years ago

epirus commented 3 years ago
import re
TIMEZONE_PATTERN = re.compile(re.compile(r"([+\-])([0-9])?([0-9])?([0-9])?([0-9])?"))

TIMEZONE_PATTERN.match('2021-09-18 13:21:44').groups()

Traceback (most recent call last): File "", line 4, in AttributeError: 'NoneType' object has no attribute 'groups'

这个为什么会报错