Commit 97cebc52 by BellCodeEditor

save project

parent 654bc3ba
Showing with 71 additions and 0 deletions
import turtle
pen=turtle.Pen()
pen.circle(50)
pen.circle(50,360,3)
pen.circle(50,60)
pen.circle(50,360,3)
turtle.done()
import turtle
pen=turtle.Pen()
pen.speed(1)
pen.left(45)
pen.circle(50,180)
pen.goto(0,0)
pen.right(90)
pen.circle(-50,180)
pen.goto(0,0)
turtle.done()
\ No newline at end of file
# 利用write()帮助悟空给诺依回信吧~
import turtle
screen=turtle.Screen()
screen.bgcolor("pink")
pen=turtle.Pen()
pen1=turtle.Pen()
pen.penup()
pen.goto(-100,200)
pen.pendown()
pen.fillcolor("red")
pen.pencolor("purple")
pen.pensize(5)
pen.begin_fill()
pen.left(45)
pen.fd(100)
pen.circle(50,180)
pen.right(90)
pen.circle(50,180)
pen.fd(100)
pen.end_fill()
pen1.write("你好\n诺伊.",font=("Times",30,"normal"))
pen.hideturtle()
pen1.hideturtle()
turtle.done()
\ No newline at end of file
user="python"
password="123456"
while True:
user1=input("user name:")
password1=input("password:")
if(user1=="python"and password1=="123456"):
print("success!")
break
if user1!=user:
print("用户名错误")
if password1!=password:
print("密码错误!")
import turtle
pen=turtle.Pen()
pen.left(45)
pen.fd(100)
pen.circle(50,180)
pen.right(90)
pen.circle(50,180)
pen.fd(100)
pen.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