os.homedir()


os.homedir() 方法以字符串的形式返回当前用户的home目录.

The os.homedir() method returns the home directory of the current user as a string.