2017年9月13日

五星红旗

摘要: from turtle import *fillcolor("yellow")bgcolor("red")color("yellow") #定义goto函数def my_goto(x,y): up() goto(x,y) down() #画大星星my_goto(-600,200)begin_fill 阅读全文

posted @ 2017-09-13 09:54 01-李嘉秀 阅读(126) 评论(0) 推荐(0)

画一个太阳花

摘要: from turtle import * fillcolor('yellow') begin_fill() while True: forward(200) left(170) if abs(pos())<1: break end_fill() 阅读全文

posted @ 2017-09-13 09:27 01-李嘉秀 阅读(216) 评论(0) 推荐(0)

用循环画一个靶心

摘要: import turtle for i in range (5): turtle.up() turtle.goto(0,-20*(i+1)) turtle.down() turtle.circle(20*(i+1)) 阅读全文

posted @ 2017-09-13 09:10 01-李嘉秀 阅读(372) 评论(0) 推荐(0)

导航