使用r’text’将字符串定义为raw,如下面的代码所示:
a = r"wordnanother wordntthird word"print(a)wordnanother wordntthird wordb = "wordnanother wordntthird word"print(b)wordanother word third word

使用r’text’将字符串定义为raw,如下面的代码所示:
a = r"wordnanother wordntthird word"print(a)wordnanother wordntthird wordb = "wordnanother wordntthird word"print(b)wordanother word third word