2017年9月14日
摘要: # coding:utf-8# 绘制七段数码管,显示当前时间import timeimport turtle as tt # 绘制间隔def drawGap(): tt.penup() tt.fd(3) # 绘制单段数码管def drawLine(draw): drawGap() if(draw): 阅读全文
posted @ 2017-09-14 13:06 程序小院 阅读(994) 评论(0) 推荐(0) 编辑
摘要: # -*- coding: utf-8 –*-import turtleimport math def draw_polygon(aTurtle, size=50, n=3): for i in range(n): aTurtle.forward(size) aTurtle.left(360.0/n 阅读全文
posted @ 2017-09-14 13:05 程序小院 阅读(947) 评论(0) 推荐(0) 编辑