第16714题 判断题
判断Python大写英文字母循环后移一位的ASCII转换语句是否正确

已知大写字母'A'对应的ASCII码值为65,变量ch保存输入的大写英文字母,则以下语句能实现大写英文字母后移一位,如A→B, B→C, ……Y→Z, Z→A:

chr((ord(ch)+1-ord("A")) % 26 + ord("A"))
{{ option.label }}
子题{{ index + 1 }} {{ child.type_label }}
{{ option.label }}
✓ 正确 ◐ 部分正确 ✗ 错误
程序运行统计
暂无判题统计
提交{{ questionInfo.stats ? questionInfo.stats.submit_count : 0 }}次 正确率{{ statsAccuracy }}%
答案解析