Stay hungry,Stay foolish.
()这个是捕获分组,所以会打印出来,你把不想打印的换成(?:)非捕获分组就行了p1 = r"^\s{4}(?:X|\W)\s{2}(C\d\d\d)\s.+\n"
posted on 2017-08-17 17:56 懵懂的菜鸟 阅读(388) 评论(0) 编辑 收藏 举报
Powered by: 博客园 Copyright © 2024 懵懂的菜鸟 Powered by .NET 9.0 on Kubernetes