123456789101112131415161718 |
- #!/usr/bin/env python3
- # 成员资格
- href = 'www.baidu.com'
- print('.' in href)
- # Check a user name and PIN code
- database = [
- ['albert', '1234'],
- ['dilbert', '4242'],
- ['smith', '7524'],
- ['jones', '9843']
- ]
- username = input('User name: ')
- pin = input('PIN code: ')
- if [username, pin] in database: print('Access granted')
|