python入门:最基本的用户登录
1 #! usr/bin/env python 2 # -*- coding: utf-8 -*- 3 #最基本的用户登录 4 import getpass 5 usre = input("username:") 6 password = getpass.getpass("password:") 7 print("username:"+usre) 8 print("password:"+password)
1 #! usr/bin/env python 2 # -*- coding: utf-8 -*- 3 #最基本的用户登录 4 import getpass 5 usre = input("username:") 6 password = getpass.getpass("password:") 7 print("username:"+usre) 8 print("password:"+password)