which one should I use: os.sep or os.path.sep?

后端 未结 4 1513
心在旅途
心在旅途 2020-12-13 16:48

They are same, but which one should I use?

http://docs.python.org/library/os.html:

os.sep

The character used by t

4条回答
  •  借酒劲吻你
    2020-12-13 17:42

    If you are using Jython 2.7, I suggest using os.sep (works) instead of os.path.sep (broken) as Jython on Windows has a bug returning a "/" slash instead of the required "\" backslash.

提交回复
热议问题