os module provides os.path.expanduser('~') to get the home directory in Python. This also works if it is a part of a longer path like ...
確定! 回上一頁