读取行时的EOF [Python 3.5]

时间:2015-11-12 14:08:55

标签: python python-3.x sublimetext3 sublimetext

这是我尝试在Sublime Text 3 for Windows 64位中运行的代码:

//    512 Bit(data)     512 Bit(Padding)
//    -------------     ------------- 
//    |xxxxxxxxxxx|     |10000000|64|
//    -------------     -------------
//
//     1 - appended 1 Bit
//     0 - filled with zeros until 8 bytes before end of block
//    64 - 64 bit (8 Byte) representation of size of file

这是我收到的错误消息:

import time

print ("First to 21 is the winner,")
i=0
while i<21:
    print("you may say",i+1,"or",i+2)
    j=int(input("You say "))
    if j<i+1 or j>i+2:
        print ("You cheated,",)
    else:
        print ("I must say",j+1,"or",j+2,"hmmm...")
        time.sleep(2)
        i=i+3          
        print ("I say",i,)
print ("and I am the winner!")
print ("Had you won, the prize was a golden ruby laser!!")

这个问题是否有解释,我该如何避免?

0 个答案:

没有答案