\n \t \r \" \' \\ \xHH \uXXXX \UXXXXXXXX \OOO。r"…" 不做转义处理,常用于正则表达式与 Windows 路径。b 字节串、f 格式化串、r 原始串,可组合为 rf"…"。Escape and unescape Python string literals in your browser — handle \n, \t, unicode and raw strings.
Python 字符串转义。专为开发者打造的在线工具,纯前端运行,代码不离开浏览器。