Commit 20f47ac8 by BellCodeEditor

save project

parent e4df259a
import turtle
t=turtle.Turtle()
t.penup()
t.goto(-100,100)
t.pendown()
t.goto(100,100)
t.goto(100,-100)
t.goto(-100,-100)
t.penup()
t.goto(0,-50)
t.tillcolor("blue")
t.begin_fill()
t.cirde(50)
t.end_fill()
t.hideturtle()
turtle.done()
\ No newline at end of file
import turtle
pen1.circle(100,steps=50)import turtle
pen=turtle.Pen()
a=['red','yellow','blue']
for i in range(3):
pen.fillcolor(a[i])
pen.begin_fill()
for i in range(2):
pen.forward(100)
pen.right(120)
pen.forward(100)
pen.end_fill()
pen.hideturtle()
turtle.done()
\ No newline at end of file
import turtle
ko=40
pen1=turtle.Pen()
pen1.pencolor("red")
pen1.pensize(5)
pen1.setheading(0)
pen1.circle(ko,180)
pen1.circle(ko,180)
pp=60
pen1.setheading(180)
pen1.circle(pp,180)
pen1.circle(pp,180)
pen1.hideturtle()
turtle.done()
\ No newline at end of file
import turtle
ko=60
pen1=turtle.Pen()
pen1.left(90)
pen1.circle(ko,180)
pen1.left(180)
pen1.circle(ko,180)
pen1.left(180)
pen1.circle(ko,180)
pen1.penup()
pen1.goto(-480,0)
pen1.pendown()
pen1.circle(ko,180)
pen1.penup()
pen1.goto(0,0)
pen1.pendown()
turtle.done()
\ No newline at end of file
import turtle
pen=turtle.Pen()
pen.left(45)
pen.forward(100)
pen.left(90)
pen.forward(100)
pen.left(90)
pen.forward(100)
pen.left(90)
pen.forward(100)
pen.hideturtle()
turtle.done()
import turtle
t=turtle.Turtle()
t.penup()
t.goto(-100,100)
t.pendown()
t.goto(100,100)
t.goto(100,-100)
t.goto(-100,-100)
t.goto(-100,100)
t.penup()
t.goto(0,-50)
t.fillcolor("blue")
t.begin_fill()
t.circle(50)
t.end_fill()
t.hideturtle()
turtle.done()
turtle.done()
username="pythen"
usepassword="123456"
a=input("账号")
b=input("密码")
if a==username:
print("账号正确!")
else :
print("账号错误!")
if b==usepassword:
print("密码正确!")
else :
print("密码错误!")
\ No newline at end of file
import turtle
screen=turtle.Screen()
screen.bgcolor("green")
pen=turtle.Pen()
pen.goto(100,-100)
pen.hideturtle()
ko=50
pen1=turtle.Pen()
pen1.pensize(5)
pen1.pencolor("red")
pen1.left(45)
pen1.forward(ko*2)
pen1.circle(ko,180)
pen1.right(90)
pen1.circle(ko,180)
pen1.forward(ko*2)
pen1.hideturtle()
turtle.done()
\ No newline at end of file
...@@ -11,7 +11,7 @@ pen.penup() ...@@ -11,7 +11,7 @@ pen.penup()
pen.goto(100,-100) pen.goto(100,-100)
pen.write("西内!",font=("Times",13,"normal")) pen.write("西内!",font=("Times",13,"normal"))
pen.hideturtle() pen.hideturtle()
ko=60
pen1=turtle.Pen() pen1=turtle.Pen()
pen1.pensize(5) pen1.pensize(5)
pen1.pencolor("red") pen1.pencolor("red")
......
import turtle
import turtle
pen=turtle.Pen()
a=['red','yellow','blue']
for i in range(3):
pen.fillcolor(a[i])
pen.begin_fill()
for i in range(2):
pen.forward(100)
pen.right(120)
pen.forward(100)
pen.end_fill()
pen.hideturtle()
turtle.done()
ko=60
ko=60
import turtle
screen=turtle.Screen()
screen.bgcolor("green")
pen=turtle.Pen()
pen.pencolor("red")
pen.penup()
pen.goto(100,-100)
pen.hideturtle()
pen1=turtle.Pen()
pen1.pensize(5)
pen1.pencolor("red")
pen1.left(45)
pen1.forward(ko*2)
pen1.circle(ko,180)
pen1.right(90)
pen1.circle(ko,180)
pen1.forward(ko*2)
pen1.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