turtle作业
Posted 钟嘉丽
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了turtle作业相关的知识,希望对你有一定的参考价值。
- 画一组同切圆>>> import turtle>>> turtle.circle(10)>>> turtle.circle(20)>>> turtle.circle(30)>>> turtle.circle(40)
- 画一组同心圆>>> turtle.circle(100)>>> turtle.up()>>> turtle.goto(0,20)>>> turtle.down()>>> turtle.circle(80)>>> turtle.up()>>> turtle.goto(0,40)>>> turtle.down()>>> turtle.circle(60)
- 画一个五角星turtle.forward(50)>>> turtle.left(144)>>> turtle.forward(50)>>> turtle.left(144)>>> turtle.forward(50)>>> turtle.left(144)>>> turtle.forward(50)>>> turtle.left(144)>>> turtle.forward(50)
- 画一个黄色实心五角星>>> turtle.color("yellow")>>> turtle.fillcolor("yellow")>>> turtle.begin_fill()>>> turtle.forward(50)>>> turtle.left(144)>>> turtle.forward(50)>>> turtle.left(144)>>> turtle.forward(50)>>> turtle.left(144)>>> turtle.forward(50)>>> turtle.left(144)>>> turtle.forward(50)>>> turtle.end_fill()
以上是关于turtle作业的主要内容,如果未能解决你的问题,请参考以下文章