摘要: import turtle number= int(input()) turtle.screensize(600,500,'white') turtle.pensize(3) turtle.pencolor('blue') turtle.fillcolor('yellow') turtle.begi 阅读全文
posted @ 2020-03-12 11:29 youngTW 阅读(125) 评论(0) 推荐(0)
摘要: import turtle turtle.speed(30) turtle.penup() off = True for y in range(-40, 30 + 1, 10): for x in range(-40, 30 + 1, 10): if off: turtle.goto(x, y) t 阅读全文
posted @ 2020-03-12 11:10 youngTW 阅读(130) 评论(0) 推荐(0)
摘要: import turtle t = turtle.Turtle() t.pensize(2) t.penup() t.goto(0,-50) t.pendown() t.begin_fill() t.fillcolor("black") t.circle(150,extent=180) t.circ 阅读全文
posted @ 2020-03-12 11:07 youngTW 阅读(157) 评论(0) 推荐(0)
摘要: import turtle turtle.width(10) turtle.color("red") turtle.circle(50) turtle.color("blue") turtle.penup() turtle.goto(120,0) turtle.pendown() turtle.ci 阅读全文
posted @ 2020-03-12 11:03 youngTW 阅读(154) 评论(0) 推荐(0)
摘要: import turtle turtle.pencolor("yellow") turtle.pensize("3") turtle.fillcolor("red") turtle.begin_fill() count = 1 while count <= 5: turtle.forward(100 阅读全文
posted @ 2020-03-12 10:36 youngTW 阅读(102) 评论(0) 推荐(0)
摘要: from turtle import * r = 20 for i in range (1,10,1): penup() goto(0,-(r+i*10)) pendown() circle((r+i*10)) 阅读全文
posted @ 2020-03-12 10:15 youngTW 阅读(128) 评论(0) 推荐(0)
摘要: import turtle turtle.fillcolor("red") turtle.begin_fill() count = 1 while count <= 5: turtle.forward(100) turtle.right(144) count += 1 turtle.end_fill 阅读全文
posted @ 2020-03-12 00:17 youngTW 阅读(128) 评论(0) 推荐(0)
摘要: import turtle as t t.setup(1000,1000,200,200) t.pu() t.fd(50) t.left(-90) t.fd(100) t.right(90) t.pd() t.pensize(5) t.pencolor("black") for i in range 阅读全文
posted @ 2020-03-12 00:13 youngTW 阅读(125) 评论(0) 推荐(0)
摘要: import turtle as t t.pencolor("black") t.penup() t.fd(-80) t.pendown() t.fd(200) t.seth(120) t.fd(200) t.seth(-120) t.fd(200) t.seth(0) t.fd(100) t.se 阅读全文
posted @ 2020-03-12 00:11 youngTW 阅读(150) 评论(0) 推荐(0)