Commit 9ba86a6d by BellCodeEditor

auto save

parent 70dc37a5
Showing with 68 additions and 16 deletions
import turtle
turtle.speed(1)
turtle.penup()
turtle.goto(-90,90)
turtle.pendown()
turtle.color("black","red")
turtle.begin_fill()
for i in range(4):
turtle.forward(180)
turtle.right(90)
turtle.end_fill()
turtle.penup()
turtle.goto(90,90)
turtle.pendown()
turtle.fillcolor("yellow")
turtle.begin_fill()
turtle.goto(-90,-90)
turtle.goto(90,-90)
turtle.goto(90,90)
turtle.end_fill()
turtle.home()
# turtle.fillcolor("yellow")
# turtle.begin_fill()
# turtle.circle(50,steps=6)
# turtle.end_fill()
turtle.done()
\ No newline at end of file
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
a=int(input('输入:'))
print("%s头奶牛7天产奶量为%s千克"%(a,a*20*7))
\ No newline at end of file
......@@ -10,5 +10,4 @@ def cjf(x,y,ys):
turtle.right(90)
turtle.end_fill()
cjf(-100,100,"black")
cjf()
turtle.done()
\ No newline at end of file
import turtle
import time
a=time.process_time()
c=time.time()
turtle.pensize(30)
turtle.pencolor("red")
turtle.penup()
turtle.goto(0,-120)
turtle.pendown()
turtle.circle(120)
turtle.penup()
turtle.goto(0,-60)
turtle.pendown()
turtle.circle(60)
turtle.penup()
turtle.goto(0,-31)
turtle.pendown()
turtle.color("blue","blue")
turtle.begin_fill()
turtle.circle(31)
turtle.end_fill()
turtle.penup()
turtle.goto(-40,12)
turtle.pendown()
turtle.pensize(1)
turtle.color("white","white")
turtle.begin_fill()
for i in range(5):
turtle.forward(80)
turtle.right(144)
turtle.end_fill()
turtle.hideturtle()
b=time.process_time()
d=time.time()
print('%s'%(b-a))
print('%s'%(d-c))
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