且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在OS X上获取当前用户的主目录?

更新时间:2023-01-13 13:02:23

即使在Windows上,os.path.expanduser("~")总是返回主目录.

It looks that os.path.expanduser("~") always returns the home directory, even on Windows.