摘要: line = 'cocct123' # '^c' 代表以c开头 match_line = '^c' if re.match(match_line,line): print('匹配') #' ^c.*' 代表以c开头,任何字符结尾 match_line =' ^c.*' if re.match(mat 阅读全文
posted @ 2019-12-22 21:37 小东阁下 阅读(200) 评论(0) 推荐(0) 编辑