题解 | #密码游戏#
密码游戏
https://www.nowcoder.com/practice/36641ab168664384aff798ba7ce34bc1
nums = input() num_list = list(nums) new_list = [] # print(num_list) for i in num_list: new_list.append((str((int(i) + 3) % 9))) new_list[0],new_list[2] = new_list[2],new_list[0] new_list[1],new_list[3] = new_list[3],new_list[1] print(''.join(new_list))