python re.complie中 r 的作用

r告诉python解释器这是原始字符串

下面是来自国外的回答

可参看国外文章https://stackoverflow.com/questions/21104476/what-does-the-r-in-pythons-re-compiler-pattern-flags-mean

发布了70 篇原创文章 · 获赞 25 · 访问量 4万+

猜你喜欢

转载自blog.csdn.net/a66666_/article/details/103289541