Commit 6409e773 by BellCodeEditor

auto save

parent 84d8fd29
Showing with 53 additions and 16 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()帮助悟空给诺依回信吧~ # 利用write()帮助悟空给诺依回信吧~
import turtle import turtle
screen=turtle.Screen()
screen.bgcolor("pink")
len=screen.textinput("tishi","duoda?")
len=int(len)
pen=turtle.Pen() pen=turtle.Pen()
pen.goto(70,20) pen.penup()
pen.write("诺伊,\n我会在画布上写字了。",font=("Times",10,"normal")) pen.pensize(5)
pen.hideturtle() pen.goto(-100,100)
pen1=turtle.Pen() pen.pendown()
pen1.fillcolor("red") pen.color("red","red")
pen1.pensize(9) pen.begin_fill()
pen1.pencolor("pink") pen.left(45)
pen1.begin_fill() pen.fd(2*len)
pen1.left(45) pen.circle(len,180)
pen1.fd(100) pen.right(90)
pen1.circle(50,180) pen.circle(len,180)
pen1.right(90) pen.fd(len*2)
pen1.circle(50,180) pen.end_fill()
pen1.fd(100) pen.penup()
pen1.end_fill() pen.goto(0,0)
pen1.hideturtle() pen.write("nihao",font=("Times",30,"normal"))
turtle.done() 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("密码错误!")
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