摘要: import re print(re.match("win (7|vista)", "win 7").group()) # win 7 print(re.match("win (7|vista)", "win 7").groups()) # ('7',) # (?:pattern) # 非获取匹配, 阅读全文
posted @ 2021-04-16 15:32 LeoGIS 阅读(683) 评论(0) 推荐(0) 编辑