match_next = re.search(r'(再来週)の(.曜日)', '再来週の月曜日')
当我运行 match_next.group[1] 时,我得到以下信息:
TypeError: 'builtin_function_or_method' object is not subscriptable
即使匹配失败,为什么group函数会报这个错误?
慕的地6264312
相关分类