在python3中\和\\都表示\。请看如下示例代码,
s = "ep_match\.log"
print(s)
s = "ep_match\\.log"
print(s)
s = "ep_match\\\.log"
print(s)
s = "ep_match\\\\.log"
print(s)
说明一下,上述代码在linux和windows环境下都进行了测试,输出为,
ep_match\.log
ep_match\.log
ep_match\\.log
ep_match\\.log