SyntaxError: unexpected EOF while parsing

Ich habe keine Ahnung, warum das nicht funktioniert bitte helfen Sie

import random
x = 0
z = input('?')
int(z)

def main():
    while x < z:
        n1 = random.randrange(1,3)
        n2 = random.randrange(1,3)
        t1 = n1+n2
        print('{0}+{1}={2}'.format(n1,n2,t1)

Wenn ich diesen starte, es gibt diese Fehler

File "/Users/macbook/Documents/workspace/gamlir_filar/samlagning.py", line 12

                                                ^
SyntaxError: unexpected EOF while parsing

Ich bin mit eclipse und python 3.3 und ich habe keine Ahnung, warum dies geschieht. Manchmal Ausgänge Fehler wie diese.

InformationsquelleAutor der Frage Quar | 2013-05-01

Schreibe einen Kommentar