摘要: 代码: # 验证罗马数字中的百位 pattern2 = '^M?M?M?(CM|CD|D?C?C?C?)$' print(re.search(pattern2, 'MCM')) print(re.search(pattern2, 'MD')) print(re.search(pattern2, 'M 阅读全文
posted @ 2022-07-22 15:13 dlage 阅读(23) 评论(0) 推荐(0) 编辑