作者热门文章
- mongodb - 在 MongoDB mapreduce 中,如何展平值对象?
- javascript - 对象传播与 Object.assign
- html - 输入类型 ="submit"Vs 按钮标签它们可以互换吗?
- sql - 使用 MongoDB 而不是 MS SQL Server 的优缺点
Possible Duplicate:
Is there a portable way to get the current username in Python?
如何获取执行给定脚本的帐户的用户名?
最佳答案
import getpass
print getpass.getuser()
关于python - 如何在 Python 中获取用户名?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4325416/
我是一名优秀的程序员,十分优秀!