我正在尝试更好地格式化它,以便它打印为一个文本块(空格可以)
现在它像这样打印 [4444, 4444] 我希望它打印 4444 4444
#secret code encrypter
def encoder(plain):
'''encodes a given input with a secret formula
'''
result = []
for i in plain:
i=ord(i)*77+4
result.append(i)
return result
def main():
plain=input('Enter a sentence: ')
final=encoder(plain)
print(final)
main()