摘要: import re phoneNumRegex = re.compile(r'zhang(wei|yang|hao)') mo = phoneNumRegex.search('my number zhangwei,zhangyang') print(mo.groups()) # ?前面字符是可选择的 阅读全文
posted @ 2022-08-17 17:54 醉城、 阅读(115) 评论(0) 推荐(0) 编辑