技术学习PythonPython编程快速上手Python《Python编程快速上手》6.3 项目:口令保管箱Ramsayi2022-01-222024-01-13pw.py 一个口令保管箱123456789101112131415161718# pw.py 一个口令保管箱import pyperclipimport sysPASSWORDS = {'email': 'asdfihejkagwbascarevoiwera', 'blog': 'seruniobthopaesrbnesropt', 'luggage': 'asDIUrvbyialestdbhajlsnt'}if len(sys.argv) < 2: print('Usage: py pw.py [account] - copy account password') sys.exit()account = sys.argv[1]if account in PASSWORDS: pyperclip.copy(PASSWORDS[account]) print('Password for ' + account + ' copied to clipboard.')else: print('There is no account name called ' + account)