老师您好,我把0,50打成0.50然后显示错误无法修改了,像这种问题需要怎么操作呢
Python 3.10.0 (tags/v3.10.0:b494f59, Oct 4 2021, 19:00:18) [MSC v.1929 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license()" for more information.
import turtle
turtle.showturtle()
turtle.write("高琪")
turtle.forward(300)
turtle.color("red")
turtle.left(90)
turtle.forward(300)
turtle.goto(0.50)
Traceback (most recent call last):
File "<pyshell#7>", line 1, in <module>
turtle.goto(0.50)
File "<string>", line 8, in goto
File "C:\Program Files\Python310\lib\turtle.py", line 1775, in goto
self._goto(Vec2D(*x))
TypeError: turtle.Vec2D() argument after * must be an iterable, not float