题解 | #密码游戏#
密码游戏
https://www.nowcoder.com/practice/36641ab168664384aff798ba7ce34bc1
import sys str1=input() list2=list(map(int,str1)) list3=[] for i in list2: i=(i+3)%9 list3.append(i) print(f'{list3[2]}{list3[3]}{list3[0]}{list3[1]}')
密码游戏
https://www.nowcoder.com/practice/36641ab168664384aff798ba7ce34bc1
import sys str1=input() list2=list(map(int,str1)) list3=[] for i in list2: i=(i+3)%9 list3.append(i) print(f'{list3[2]}{list3[3]}{list3[0]}{list3[1]}')
相关推荐