Python os.sep: File Path Separator for Your Operating System
The os.sep attribute is a string that represents the separator character used in file paths for the current operating system. For example, on Windows it would be "", while on Unix-based systems it would be "/". This attribute allows you to write code that can handle file paths correctly regardless of the operating system it's running on.
原文地址: https://www.cveoy.top/t/topic/pIvP 著作权归作者所有。请勿转载和采集!