file_ascii = [(ord(c)) for c in contents]
f_file = []
for x in range (0, len(file_ascii)):
if file_ascii[x] != 32:
file_ascii2 = (file_ascii[x])
file_ascii2 = (offset) + (file_ascii2)
if file_ascii2 > 126:
file_ascii2 = (file_ascii2) - 94
print (file_ascii2)
file_ascii2 = [(chr(i)) for i in file_ascii2]
f_file.append(file_ascii2)
列表“内容”中的所有内容都应该转换为其等效的 ascii 代码。然而,当 'file_ascii2' 变回普通字母时,其中一些已经是普通字母,即使它已经被添加和减去。当代码运行时
file_ascii2 = [(chr(i)) for i in file_ascii2]
作为评论,“file_ascii2”被证明是所有整数