How to get username, home directory, and hostname with Python ... import os homedir = os.environ['HOME'] print(homedir). /home/saltycrane ...
確定! 回上一頁