请问我的代码哪里不对
查看原帖
请问我的代码哪里不对
1180577
pcyxjy楼主2023/10/30 22:43
encode=input()
decode=input()
task=input()
ref=dict(zip(encode,decode))
if len(ref)!=26 or len(set(ref.values()))!=len(ref):
    print('Failed')
else:
    for ch in task:
        ch=ref[ch]
        print(ch,end='')
2023/10/30 22:43
加载中...