listing2-4.py
来自「《Beginning Python--From Novice to Profes」· Python 代码 · 共 13 行
PY
13 行
# Check a user name and PIN codedatabase = [ ['albert', '1234'], ['dilbert', '4242'], ['smith', '7524'], ['jones', '9843']]username = raw_input('User name: ')pin = raw_input('PIN code: ')if [username, pin] in database: print 'Access granted'
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?