How do I get the username in Python?
Possible Duplicate:
Is there a portable way to get the current username in Python?
How can I get the username of the account by which the given script is being executed?
import getpass
print getpass.getuser()
链接地址: http://www.djcxy.com/p/79418.html
下一篇: 我如何在Python中获取用户名?