题解 | #字符串加解密#
字符串加解密
https://www.nowcoder.com/practice/2aa32b378a024755a3f251e75cbf233a
# 2024年10月30日 周三 上午9:16 A = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz" B = "1234567890bcdefghijklmnopqrstuvwxyzaBCDEFGHIJKLMNOPQRSTUVWXYZA" s1 = input() s2 = input() s3 = "" s4 = "" for i in s1: if i in A: s3 += B[A.index(i)] else: s3 += i print(s3) for i in s2: if i in B: s4 += A[B.index(i)] else: s4 += i print(s4)