主页
Python
Python turtle 模块
demo_ref_module_turtle_basic
运行 ❯
×
更改方向
保存代码
更改主题
import turtle x = turtle.Turtle() y = 5 z = 50 a = 360.0 / y for i in range(y): x.forward(z) x.right(a) turtle.done()