以下程序实现了一种简单的“翻转”加密:将大写字母表中的每个字母替换为与其对称的字母(A↔Z、B↔Y、C↔X、......)。横线处填写的代码是?
text = "HELLO"
result = []
for ch in text:
if 'A' <= ch <= 'Z':
_________
result.append(new_ch)
else:
result.append(ch)
encrypted = ''.join(result)
print(encrypted)
new_ch = chr(ord('Z') - (ord(ch) - ord('A')))
new_ch = chr(ord('Z') - ord(ch) - ord('A'))
new_ch = chr(ord('Z') + (ord(ch) - ord('A')))
new_ch = chr(ord('Z') - ord(ch))