精华
楼主: 木子呢
|
[教程] Mind+Python编程入门系列课程——01 智能绘星 |
|
怎么画圆?就差最后一点,SB法阵就完成了! import turtle a = input('Line color.') turtle.pencolor(a) turtle.speed(2) turtle.shape('turtle') turtle.left(180) turtle.forward(100) for i in range(2): …turtle.right(90) turtle.forward(150) turtle.pendown() turtle.right(90) turtle.forward(200) turtle.done() |
沪公网安备31011502402448© 2013-2026 Comsenz Inc. Powered by Discuz! X3.4 Licensed