Commit 7c9047e9 by BellCodeEditor

save project

parent 3244b454
Showing with 12 additions and 25 deletions
import turtle
a = turtle.Pen()
a.circle(180,50)
a.
\ No newline at end of file
import turtle
screen=turtle.Screen()
screen.bgcolor("pink")
len=screen.textinput("提示","你想要多大的爱心?")
a=int(len)
b=turtle.Pen()
b.penup()
b.goto(100,-100)
b.write("Hi,诺伊~\n用python写电子贺卡真是太有趣了~\n我也喜欢python~\n——悟空",font=("Times",18,("normal")))
b.hideturtle()
c = turtle.Pen()
c.pensize(5)
c.pencolor("red")
c.fillcolor("light blue")
c.begin_fill()
c.left(45)
c.forward(2*a)
c.circle(a,180)
c.right(90)
c.circle(a,180)
c.forward(2*a)
c.end_fill()
c.hideturtle()
turtle.done()
\ No newline at end of file
username='python'
userpassword='123456'
name = inpot("请输入用户名:")
password = inpot("请输入密码:")
if name == username and password == nserpassword:
print("登录成功!")
\ 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