【python】获取系统当前登录的用户名

import win32api
print win32api.GetUserName()
原文地址:https://www.cnblogs.com/jeJee/p/2675096.html