how to get windows username in python code example
Example 1: python get username windows
username = os.getlogin()
Example 2: python get current user windows
import os
current_user = os.getlogin()
username = os.getlogin()
import os
current_user = os.getlogin()