题解 | #字符串加密#
字符串加密
https://www.nowcoder.com/practice/e4af1fe682b54459b2a211df91a91cf3
s=input() t=input() a='abcdefghijklmnopqrstuvwxyz' a_list=list(a) y='' for i in s: if i not in y: y+=i for j in a: if j not in y: y+=j output='' for l in t: output+=y[a.index(l)] print(output)
list好像没用到