python os.path.expanduser()

# Expand the user's home directory

原文地址:https://www.cnblogs.com/baxianhua/p/10214458.html