Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
只是出于好奇——有没有比os.path.normcase('/')Python 2.4 获得平台路径分隔符的另一种方法? 我期待着像一个os.path.separator常数......
os.path.normcase('/')
os.path.separator
那将是os.sep。
os.sep