如 r'asdas'python
這個是表示不轉義,使用真實字符 好比以下代碼: s = r'test\tddd' s2 = 'test\tddd' print(s) print(s2) 輸出結果是: test\tddd test ddd 其中s裏面的\t就是使用真實字符\t,而不是轉義爲製表符