Commit 3b2b3bc5 by BellCodeEditor

save project

parent aede12cf
import turtle
turtle.pensize(2)
turtle.pencolor("red")
turtle.goto(0,-100)
turtle.goto(0,100)
turtle.goto(0,0)
turtle.goto(100,0)
turtle.goto(-100,0)
turtle.goto(0,0)
turtle.goto(0,-100)
turtle.circle(100)
turtle.done()
\ No newline at end of file
import turtle
turtle.color("black")
turtle.forward(200)
turtle.right(90)
turtle.forward(200)
turtle.right(90)
turtle.forward(200)
turtle.right(90)
turtle.forward(200)
turtle.penup()
turtle.goto(100,-100)
turtle.pendown()
turtle.fillcolor("red")
turtle.begin_fill()
turtle.circle(10)
turtle.end_fill()
turtle.penup()
turtle.goto(60,-100)
turtle.pendown()
turtle.fillcolor("red")
turtle.begin_fill()
turtle.circle(10)
turtle.end_fill()
turtle.penup()
turtle.goto(140,-100)
turtle.pendown()
turtle.fillcolor("red")
turtle.begin_fill()
turtle.circle(10)
turtle.end_fill()
turtle.hideturtle()
\ No newline at end of file
a=int(input("请输入一个三位数:"))
d=a%10
c=(a//10)%10
b=a//100
print("百:",b,"十:",c,"个:",d)
\ No newline at end of file
a=input("长方形的长:")#......
b=input("长方形的宽:")#......
s=input(int(a)*int(b))#......
print("长方形的面积为:",s)#......
\ No newline at end of file
import turtle
turtle.pencolor("black")
turtle.fillcolor("black")
turtle.begin_fill()
turtle.forward(100)
turtle.right(90)
turtle.forward(100)
turtle.right(90)
turtle.forward(100)
turtle.right(90)
turtle.forward(100)
turtle.end_fill()
turtle.right(90)
turtle.forward(200)
turtle.right(90)
turtle.forward(100)
turtle.right(90)
turtle.forward(100)
turtle.right(90)
turtle.forward(100)
turtle.right(180)
turtle.forward(200)
turtle.right(90)
turtle.forward(100)
turtle.right(90)
turtle.forward(100)
turtle.right(90)
turtle.forward(200)
turtle.fillcolor("black")
turtle.begin_fill()
turtle.right(90)
turtle.forward(100)
turtle.right(90)
turtle.forward(100)
turtle.right(90)
turtle.forward(100)
turtle.end_fill()
turtle.hideturtle()
turtle.down()
\ No newline at end of file
a=input("请输入奶牛的头数:")
b=int(a)
c=b*140
print(b,"头奶牛7天可以产",c,"的牛奶")
\ No newline at end of file
b=int(input("总秒数是:"))
c=b%60
d=b//60%60
e=b//3600
print("c ","d ","e ")
\ No newline at end of file
import turtle
g = turtle.Pen()
g.fillcolor("red")
g.begin_fill()
g.circle(50)
g.pencolor("yellow")
g.fillcolor("green")
g.circle(50, steps=5)
g.end_fill()
...@@ -7,7 +7,7 @@ pen=turtle.Pen() ...@@ -7,7 +7,7 @@ pen=turtle.Pen()
screen=turtle.Screen() screen=turtle.Screen()
screen.bgcolor("black") screen.bgcolor("black")
colors=["green","red","yellow","orange"] colors=["green","red","yellow","orange"]
for i in range (1,300): for i in range (0,300):
pen.pencolor(colors[i%4]) pen.pencolor(colors[i%4])
pen.forward(i) pen.forward(i)
pen.right(91) pen.right(91)
......
import turtle
turtle.color("black")
turtle.speed(1)
turtle.fillcolor("yellow")
turtle.begin_fill()
turtle.forward(180)
turtle.right(135)
turtle.goto(0,-180)
turtle.right(135)
turtle.forward(180)
turtle.end_fill()
turtle.penup()
turtle.goto(180,0)
turtle.pendown()
turtle.fillcolor("red")
turtle.begin_fill()
turtle.right(180)
turtle.forward(180)
turtle.right(90)
turtle.forward(180)
turtle.right(135)
turtle.goto(180,0)
turtle.end_fill()
turtle.hideturtle()
turtle.down()
\ No newline at end of file
import turtle
turtle.penup()
turtle.goto(-100,100)
turtle.pendown()
turtle.forward(200)
turtle.right(90)
turtle.forward(200)
turtle.right(90)
turtle.forward(200)
turtle.right(90)
turtle.forward(200)
turtle.penup()
turtle.goto(-50,0)
turtle.pendown()
turtle.fillcolor("blue")
turtle.begin_fill()
turtle.circle(-50)
turtle.end_fill()
turtle.hideturtle()
turtle.done()
\ No newline at end of file
a=int(input("请输入:"))
d=a%10
c=(a//10)%10
b=a//100
print("百:",b,"十:",c,"个:",d)
\ No newline at end of file
import turtle
turtle.penup()
turtle.goto(-100,100)
turtle.pendown()
turtle.forward(200)
turtle.right(90)
turtle.forward(200)
turtle.right(90)
turtle.forward(200)
turtle.right(90)
turtle.forward(200)
turtle.penup()
turtle.goto(-50,0)
turtle.pendown()
turtle.fillcolor("blue")
turtle.begin_fill()
turtle.circle(-50,360,6)
turtle.end_fill()
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