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