博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Python基础综合练习
阅读量:7006 次
发布时间:2019-06-27

本文共 991 字,大约阅读时间需要 3 分钟。

import turtleturtle.bgcolor("red")turtle.fillcolor("yellow")turtle.color('yellow')turtle.speed(10)#主星turtle.up()turtle.goto(-300,220)turtle.down()turtle.begin_fill()for i in range (5):        turtle.forward(150)    turtle.right(144)turtle.end_fill()#第1颗副星turtle.begin_fill()turtle.up()turtle.goto(-100,295)turtle.setheading(305)turtle.down()for i in range (5):    turtle.forward(50)    turtle.left(144)turtle.end_fill()#第2颗副星turtle.begin_fill()turtle.up()turtle.goto(-50,212)turtle.setheading(30)turtle.down()for i in range (5):    turtle.forward(50)    turtle.right(144)turtle.end_fill()#第3颗副星turtle.begin_fill()turtle.up()turtle.goto(-50,145)turtle.setheading(5)turtle.down()for i in range (5):    turtle.forward(50)    turtle.right(144)turtle.end_fill()#第4颗副星turtle.begin_fill()turtle.up()turtle.goto(-100,90)turtle.setheading(300)turtle.down()for i in range (5):    turtle.forward(50)    turtle.left(144)turtle.end_fill()
turtle.done()
 
 

 

转载于:https://www.cnblogs.com/mimimi/p/8600602.html

你可能感兴趣的文章
我的新居
查看>>
jQuery 教程
查看>>
[Linux]命令集锦
查看>>
Microsoft visio 2010之简单使用
查看>>
Mysql 中 DATETIM和TIMESTAMP 数据类型的选择比较(收藏)
查看>>
我的友情链接
查看>>
netty源码分析系列——ByteBuf&UnpooledByteBuf
查看>>
【学习笔记7】Linux常用命令4 - 文件搜索命令
查看>>
CDI(Weld)高级<6> Specialization and alternatives
查看>>
OS企业版app发布问题
查看>>
df、du、fdisk命令基本使用
查看>>
2016-05-27
查看>>
深入了解java HashMap的死循环
查看>>
WordPress数据库管理插件:WP-DBManager
查看>>
WordPress条件标签(Conditional Tags)实现页脚js动态加载
查看>>
android短信发送器
查看>>
Vue项目webpack打包部署到Tomcat
查看>>
mac安装redis管理工具rmd
查看>>
struts 2 监听器
查看>>
更简单的用 Emacs 连接 maven 启动的 clojure:swank 服务端
查看>>