话不多说,直接上代码
Python语言描述
1 #!/usr/bin/env python3 2 user = input(‘please input your username:‘) 3 password = input(‘please input your password:‘) 4 print(‘Hi,‘,user,‘your password is:‘,password) 5 if(len(password)<5): 6 print(‘Weak password‘) 7 else: 8 print(‘Welcome ‘,user)
时间: 2024-12-28 13:41:39