摘要:
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 阅读全文
摘要:
import turtle n = 60 # 每行间隔,小格子边长 x = -300 # x初始值 y = -300 # x初始值 def main(): turtle.speed(11) turtle.pensize(2) turtle.penup() # 先画8*8的正方形,并按要求涂黑 for 阅读全文
摘要:
from turtle import * pensize(3) penup() pencolor("black") reset() speed(10) pendown() circle(100,180) circle(200,180) circle(100,-180) fillcolor('blac 阅读全文
摘要:
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() 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
import turtle turtle.pensize(5) turtle.pencolor("yellow") turtle.fillcolor("red") turtle.begin_fill() for i in range(0,5): turtle.forward(100) turtle. 阅读全文