题解 | #密码游戏#
密码游戏
http://www.nowcoder.com/practice/36641ab168664384aff798ba7ce34bc1
x = input()
origin_list = []
for i in range(len(x)):
origin_list.append((int(x[i])+3)%9)
origin_list[0],origin_list[2] = origin_list[2],origin_list[0]
origin_list[1],origin_list[3] = origin_list[3],origin_list[1]
for j in origin_list:
print(j,end="")
origin_list = []
for i in range(len(x)):
origin_list.append((int(x[i])+3)%9)
origin_list[0],origin_list[2] = origin_list[2],origin_list[0]
origin_list[1],origin_list[3] = origin_list[3],origin_list[1]
for j in origin_list:
print(j,end="")