摘要: https://www.crifan.com/python_re_sub_detailed_introduction/ 阅读全文
posted @ 2018-10-31 16:09 雷神约 阅读(544) 评论(0) 推荐(0) 编辑
摘要: str2 ="2018-10-29"c =re.sub(r"(\d{4})-(\d{2})-(\d{2})","\g<1>/\g<2>/\g<3>",str2)print(c) 阅读全文
posted @ 2018-10-31 16:02 雷神约 阅读(535) 评论(0) 推荐(0) 编辑