python里的turtle.write()
import turtlex1,y1=eval(input('请输入x1,y1'))
x2,y2=eval(input('请输入x2,y2'))
print(x1,y1)
print(x2,y2)
turtle.penup()
turtle.goto(x1,y1)
turtle.write(x1,y1)
turtle.pendown()
turtle.goto(x2,y2)
turtle.write(x2,y2)
turtle.done()
1.请问下turtle.write(x1,y1)是只能显示第一个x1,不能显示y1吗?
turtle.write("你想要输入的文本", align="你想要显示的位置(有left(左边),center(中间),right(右边))",font=("字体",字号,"normal"))
页:
[1]