这个错在哪里呢?
>>> a=1
>>> b=1
>>> while a<=10:
... b=a*b
... a=a+1
... print(b)
File "<stdin>", line 4
print(b)
^
SyntaxError: invalid syntax
>>>
>>> a=1
>>> b=1
>>> while a<=10:
... b=a*b
... a=a+1
... print(b)
File "<stdin>", line 4
print(b)
^
SyntaxError: invalid syntax
>>>
2021-01-06
举报