下面是我尝试使用 python 的代码
>>> import string
>>> def main():
print "hey"
print
key = input ("key?")
message = raw_input("Enter the message: ")
codedMessage = ""
for ch in message:
codedMessage = codedMessage + chr(ord(ch) + key)
print "the coded is: ", codedMessage
>>> main()
hey
key?-1
Enter the message: hey how are you?
the coded is: gdx gnv `qd xnt>
但是当我在圣人数学中尝试这个时......输入功能不起作用