参考代码:
s = list(input()) for i in range(len(s)): if s[i] == 'z': s[i] = 'a' continue elif s[i] == 'Z': s[i] = 'A' continue if 65 <= ord(s[i]) <= 89 or 97 <= ord(s[i]) <= 121: s[i] = chr(ord(s[i]) + 1) s2 = ''.join(s) print(s2)
0.0分
0 人评分
A+B for Input-Output Practice (IV) (C++代码)浏览:865 |
C语言程序设计教程(第三版)课后习题6.10 (C语言代码)浏览:677 |
C语言程序设计教程(第三版)课后习题5.7 (C语言代码)浏览:583 |
程序员的表白 (C语言代码)浏览:1463 |
简单编码 (C++代码)浏览:730 |
母牛的故事 (C语言代码)浏览:478 |
IP判断 (C语言代码)浏览:820 |
K-进制数 (C语言描述,蓝桥杯)浏览:955 |
C语言训练-亲密数 (C语言描述,反正怎么都能对)浏览:2256 |
整除问题 (C语言代码)浏览:594 |