Python: Get the current username
Python Basic: Exercise-54 with Solution
Write a Python program to get the current username.
Sample Solution:-
import getpass
print(getpass.getuser())
========== RESTART: F:/Python_APSC/py-ex-basic-54.py ===========
User
>>>
沒有留言:
張貼留言