Use / for path on Windows, and have stdlib functions use it as well (glob, os.path, etc.)

后端 未结 0 978
臣服心动
臣服心动 2020-12-03 19:37

How to force Python to use / as path separator (for glob, os.path, etc.), even on Windows?

I tried os.sep = \'/\'

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