文章预览
How to get the current username in Python
2023年08月22日
314 字
To get the current username in Python, you can use the `getpass` module or the `os` module. Here are two ways to do it: Using the `getpass` module: ``` import getpass userna…
阅读全文
浏览
评论