Python 3.9.1 (tags/v3.9.1:1e5d33e, Dec 7 2020, 17:08:21) [MSC v.1927 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license()" for more information.
>>> import turtle
>>> turtle.showturtle()
>>> turtle.write("PCL")
>>> turtle.forward("300")
Traceback (most recent call last):
File "<pyshell#3>", line 1, in <module>
turtle.forward("300")
File "<string>", line 8, in forward
File "C:\Users\pcl\lib\turtle.py", line 1638, in forward
self._go(distance)
File "C:\Users\pcl\lib\turtle.py", line 1605, in _go
ende = self._position + self._orient * distance
File "C:\Users\pcl\lib\turtle.py", line 257, in __mul__
return Vec2D(self[0]*other, self[1]*other)
TypeError: can't multiply sequence by non-int of type 'float'
>>> import turtle
>>> turtle.showturtle()
>>> turtle.write("PCL")
>>> turtle.forward(300)
SyntaxError: multiple statements found while compiling a single statement
>>>
请问程序报错之后,怎样修改代码,需要重新写还是直接在源代码上进行修改