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.
在 OCaml 顶层我试图打印当前目录。
IE
# Filename.current_dir_name;;
返回
- : string = "."
这不是很有用。
显示当前目录的完整路径所需的顶级命令是什么?
许多系统调用可以通过sys完成
就您而言, Sys.getcwd();;