摘要: import turtle as t t.pensize(3) t.pencolor("blue") t.penup() t.fd(-250) t.seth(0) t.pendown() t.fillcolor("yellow") t.begin_fill() n=10 for i in range 阅读全文
posted @ 2020-03-15 15:51 可乐配牛奶 阅读(1082) 评论(0) 推荐(0) 编辑
摘要: import turtle n = 60 # 每行间隔,小格子边长 x = -300 # x初始值 y = -300 # x初始值 def main(): turtle.speed(11) turtle.pensize(2) turtle.penup() # 先画8*8的正方形,并按要求涂黑 for 阅读全文
posted @ 2020-03-15 15:23 可乐配牛奶 阅读(782) 评论(0) 推荐(0) 编辑
摘要: from turtle import * pensize(3) penup() pencolor("black") reset() speed(10) pendown() circle(100,180) circle(200,180) circle(100,-180) fillcolor('blac 阅读全文
posted @ 2020-03-15 14:56 可乐配牛奶 阅读(1834) 评论(0) 推荐(0) 编辑
摘要: import turtle as t t.setup(600,600,50,50) t.pensize(3) t.pencolor("red") t.penup() t.pendown() t.circle(45) t.penup() t.fd(100) t.seth(0) t.pendown() 阅读全文
posted @ 2020-03-15 14:32 可乐配牛奶 阅读(590) 评论(0) 推荐(0) 编辑
摘要: import turtle as t t.pensize(3) t.setup(600,600,50,50) t.pencolor("yellow") t.penup() t.pendown() t.circle(80) t.right(90) t.penup() t.fd(20) t.seth(0 阅读全文
posted @ 2020-03-15 13:57 可乐配牛奶 阅读(1999) 评论(0) 推荐(0) 编辑
摘要: import turtle as t t.setup(600,600,None,None) t.pensize(5) t.penup() t.pendown() t.pencolor("red") t.circle(80) t.penup() t.pendown() t.pencolor("gree 阅读全文
posted @ 2020-03-15 13:30 可乐配牛奶 阅读(875) 评论(0) 推荐(0) 编辑
摘要: import turtle turtle.pensize(5) turtle.pencolor("yellow") turtle.fillcolor("red") turtle.begin_fill() for i in range(0,5): turtle.forward(100) turtle. 阅读全文
posted @ 2020-03-15 11:56 可乐配牛奶 阅读(188) 评论(0) 推荐(0) 编辑