import sys if len(sys.argy) < 2: print('Usage: python 口令保管箱.py [account] - copy account password') sys.exit
时间: 2024-05-30 22:15:47 浏览: 109
()# create a dictionary to store account and password information
passwords = {'email': 'password123', 'bank': 'secure456', 'social media': 'secret789'}
# check if the account exists in the dictionary
if sys.argv[1] in passwords:
# if the account exists, copy the password to the clipboard
import pyperclip
pyperclip.copy(passwords[sys.argv[1]])
print('Password for ' + sys.argv[1] + ' copied to clipboard.')
else:
# if the account does not exist, print an error message
print('Account ' + sys.argv[1] + ' does not exist.')
阅读全文