You have 2 choices, pick your favorite. >>> import os >>> os.path.expanduser("~") '/home/timo' >>> os.environ["HOME"] '/home/timo'.
確定! 回上一頁