Python replace Double Backlash with Single Bcklash

前端 未结 0 981
醉话见心
醉话见心 2020-11-29 14:43

I am trying to convert the window path in Pathlib to string.

However, I can\'t convert the \\\\ to \\

The code I ran

    fileDir = pathlib.Path         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题