python - Python os.pathsep 的 Rust 等价物是什么?

标签 python path rust environment-variables

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_pathsstd::env::join_paths .

关于python - Python os.pathsep 的 Rust 等价物是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40823230/

相关文章:

python - 按特定列表(边缘权重)对图进行元组排序

python - 如何找到文件所在的挂载点?

javascript - 在 Three.js 中为弯曲路径添加宽度

ruby-on-rails - Ruby on Rails - 不使用资源路由的路径变量

windows - 在 Windows 上将 Rust 代码链接到 boringssl 时未解析的外部符号 AES_set_encrypt_key

rust - std::int::to_str_bytes 的第三个参数是什么?

Python:列表比较以查找列表的唯一元素计数

python - 如果我在子词典中有特定的唯一值,如何断言?

html - 如何在 Angular2 中提供图像?

visual-studio-code - 是否可以通过 Visual Studio 代码运行 #[tokio::test] 标记的单元测试?