Python问题解答,不知道怎么做

求一大佬教学

img

题目完整代码如下,移位左移3位。

import pyperclip
import sys

pwd_dict={'email':'fkdqjhryhu','campus':'fdpsxv456'}
pwds={}
for k,p in pwd_dict.items():
    p1=[]
    for y in p:
        x=chr(ord(y)-3)
        p1.append(x)
        pwds[k]=''.join(p1)
    
print(pwds)
if len(sys.argv) < 2:
    print("Please input the account name")
    sys.exit()
account = sys.argv[1]
if account in pwds:
    pyperclip.copy(pwds[account])
    print("The password for " + account + " copied to clipboard!")
else:
    print("There is no account named " + account )

如对你有帮助,请点击一下我回答右上方采纳按钮。