Pycharm画五角星
2024-08-26 02:57:11
import turtle turtle.setup(600,400,0,0)
turtle.bgcolor('red')
turtle.color('yellow')
turtle.fillcolor('yellow') def mygoto(x,y):
turtle.up()
turtle.goto(x,y)
turtle.down() def draw(l):
turtle.begin_fill()
for i in range(5):
turtle.forward(l)
turtle.right(144)
turtle.end_fill() mygoto(-250,100)
draw(100) for i in range(4):
x=1
if i in [0,3]:
x=0
mygoto(-100+x*50,150-i*47)
turtle.left(15-i*15)
draw(30) mygoto(0,0)
turtle.hideturtle()
# print(time.clock()) turtle.done()
最新文章
- windows环境下搭建vue+webpack的开发环境
- Xcode 改时间问题 lua代码没反应问题
- silverlight MouseLeftButtonDown事件总是无法触发
- Open Live Writer的配置
- 解决真机调试时Eclipse DDMS上打不开/data目录的问题
- 【Android车载系统 News | Tech 4】知乎--车载话题链接
- HTTPS的工作原理
- Solr中Schema.xml中文版
- (转)c指针
- Javascript: 截取字符串多出来并用省略号[...]显示
- 追踪神秘的成都Uber:月入2万元是现实还是传说
- 在Qt中如何使用QtDesigner创建的UI文件
- HDU 4283 You are the one(间隔DP)
- Java 容器一些知识
- 美团,点评,澎湃等APP的启示
- ecos的app生命周期
- iOS程序生命周期 AppDelegate
- Mac入门推荐(写给Mac小白)
- php框架之我见:php开发到底需不要用框架?
- Spring+SpringMVC+MyBatis+easyUI整合
热门文章
- C++入门篇十一
- Razor Page 文件
- 小程序:动态监测input和取值
- PDF中的空白页面怎么删除,PDF页面删除技巧
- spring-data-jpa 二、多对一结构、Repository
- mysql_config not found和error: command 'gcc' failed with exit status 1
- XMLHttpRequest中常用的方法
- Oracle体系结构之内存结构(3)
- jquery插件之一些小链接
- UOJ#73. 【WC2015】未来程序 提交答案题