Commit 70dc37a5 by BellCodeEditor

auto save

parent 81c20b59
Showing with 58 additions and 0 deletions
import turtle
turtle.penup()
turtle.goto(0,-100)
turtle.pendown()
turtle.pencolor("red")
turtle.circle(100)
turtle.goto(0,100)
turtle.penup()
turtle.goto(-100,0)
turtle.pendown()
turtle.goto(100,0)
turtle.hideturtle()
turtle.done()
\ No newline at end of file
import turtle
def cjf(x,y,ys):
turtle.penup()
turtle.goto(x,y)
turtle.pendown()
turtle.color("black",ys)
turtle.begin_fill()
for i in range(4):
turtle.forward(100)
turtle.right(90)
turtle.end_fill()
cjf(-100,100,"black")
cjf()
turtle.done()
\ No newline at end of file
# import math
# a=int(input("开始:"))
# b=int(input("结束:"))
# for i in range(a,b+1):
# for k in range(2,int(math.sqrt(i))+1):
# if i%k==0:
# break
# else:
# print(i)
import turtle
def sb(x,y,ys):
turtle.penup()
turtle.goto(x,y)
turtle.pendown()
turtle.fillcolor(ys)
turtle.begin_fill()
for i in range(4):
turtle.forward(100)
turtle.right(90)
turtle.end_fill()
sb(-100,0,"white")
sb(0,100,"white")
sb(-100,100,"black")
sb(0,0,"black")
turtle.hideturtle()
turtle.done()
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment