python中原始字符串

>>> a = "ab\ncde"
>>> print(a)
ab
cde
>>> b = "ab\\ncde"
>>> print(b)
ab\ncde
>>> c = r"ab\ncd3"
>>> print(c)
ab\ncd3

 

posted @ 2020-12-17 18:14  小鲨鱼2018  阅读(97)  评论(0编辑  收藏  举报