我想用Python检索Windows计算机用户的全名。我找到了等效的批处理命令:净用户“%USERNAME%” / domain ... 用 pywin32 你可以用 import win32net 和使用 win32net.
確定! 回上一頁