Python 有:
os.pathsep: The character conventionally used by the operating system to separate search path components (as in PATH), such as ':' for POSIX or ';' for Windows. Also available via
os.path
.
Rust 中是否有类似的特定于操作系统的定义?
最佳答案
这似乎没有一个常数,但 Rust 确实提供了 std:::env::split_paths
和 std::env::join_paths
.
关于python - Python os.pathsep 的 Rust 等价物是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40823230/