How to think like a Computer Scientist: 课后习题第十八章1
来源:互联网 发布:php hadoop 编辑:程序博客网 时间:2024/06/06 20:58
import turtleimport timedef koch(t, order, size): if order == 0: t.forward(size) else: for angle in [60, -120, 60, 0]: koch(t,order - 1, size/3) t.left(angle)wn = turtle.Screen()wn.bgcolor("green")wn.title("yuxiangyang is testing!")tess = turtle.Turtle()tess.color("navy blue")tess.pensize(4)tess.penup()tess.forward(-100)tess.left(90)tess.forward(100)tess.right(90)tess.pendown()for i in range(3): koch(tess, 2, 300) tess.right(120)time.sleep(10)wn.bye()
- How to think like a Computer Scientist: 课后习题第十八章1
- How to think like a Computer Scientist: 课后习题第十八章2
- How to think like a Computer Scientist: 课后习题第十八章3
- How to think like a Computer Scientist: 课后习题第十八章4
- How to think like a Computer Scientist: 课后习题第十八章5-8
- How to think like a Computer Scientist: 课后习题第十八章9-11
- How to think like a computer scientist: 第四章 课后习题 1
- How to think like a Computer Scientist: 课后习题第六章 1-5
- How to think like a Computer Scientist: 课后习题第七章 1-10
- How to think like a Computer Scientist: 课后习题第十四章1
- How to think like a Computer Scientist: 课后习题第十五章1-5
- How to think like a Computer Scientist: 课后习题第二十一章1-5
- How to think like a Computer Scientist: 课后习题第三章 12题
- How to think like a Computer Scientist: 课后习题第四章 2题
- How to think like a computer scientist: 第五章 课后习题 9
- How to think like a computer scientist: 第四章 课后习题 5
- How to think like a Computer Scientist: 课后习题第四章 10
- How to think like a Computer Scientist: 课后习题第六章 6-12
- 为php添加扩展
- 黑马程序员-我的入学笔记1-关于C#.net基础
- Codeforces 160A - Twins
- PHPMyadmin 配置文件详解(配置)
- php开发常见的十个问题
- How to think like a Computer Scientist: 课后习题第十八章1
- PCQQ2013 0828涉及到的CRC校验算法[.net
- 亚马逊面试题2(二叉树)
- 一个抽奖函数(自定义中奖项数和概率)
- MFC窗口的关闭过程
- hdu 4738 Caocao's Bridges(双联通)
- PCQQ加密类Tea算法[最新版本兼容]
- python批量删除数据库触发器
- ASCII码表