invalid syntax请教大佬
>>> L = [75, 92, 59, 68]
>>> sum = 0.0
>>> for x in L:
... sum = sum + x
... print sum / 4
File "<stdin>", line 3
print sum / 4
^
SyntaxError: invalid syntax
>>> L = [75, 92, 59, 68]
>>> sum = 0.0
>>> for x in L:
... sum = sum + x
... print sum / 4
File "<stdin>", line 3
print sum / 4
^
SyntaxError: invalid syntax
2019-01-30
举报