摘要:
特殊字符:\.^$?+*{}[]()|re.search 全文一次搜索到停止re.match 全文開頭一次搜索停止def sub_once_a_time(pattern, raw_str): before_str = "0" after_str = raw_str sub_list = [] cou 阅读全文
posted @ 2021-02-05 13:53
小毛编
阅读(68)
评论(0)
推荐(0)
摘要:
转自:https://www.cnblogs.com/miaoning/p/11450659.html 在Python普通字符串中 在Python中,我们用'\'来转义某些普通字符,使其成为特殊字符,比如 In [1]: print('abc\ndef') # '\n'具有换行的作用 abc def 阅读全文
posted @ 2021-02-05 11:19
小毛编
阅读(2978)
评论(0)
推荐(0)

浙公网安备 33010602011771号