-1
z=list()
t=raw_input()
for i in range (0,int(t)):
x= raw_input()
z.append(x)
for i in z:
if(i%3==0 and i%5==0):
print 'FizzBuzz'
elif(i%3==0):
print 'Fizz'
elif(i%5==0):
print 'Buzz'
else:
print i
print '\n'
這是我的代碼。出於某種原因,我不斷收到此錯誤使用raw_input的Python中的EOF錯誤
Traceback (most recent call last): File "/tmp/editor_trsource_1390938776_887424.py", line 10, in
x= raw_input() EOFError: EOF when reading a line
你是如何運行它的? – geoffspear
python filename.py –
什麼環境?什麼外殼?你實際上在輸入什麼? – geoffspear