Commit 502946c5 by BellCodeEditor

save project

parent 612702af
Showing with 19 additions and 8 deletions
import turtle
screen = turtle.Screen()
)screen.textinput("提示","你想要的爱心大小是":
turtle.done()
username = "python"
userpassword = "123456"
name = input("请输入账号:")
password = input("请输入密码:")
if (name==username)and (password ==userpassword):
print("登陆成功")
\ No newline at end of file
import turtle import turtle
#p = turtle.Pen() screen = turtle.Screen()
#p.write("诺伊,你好\n我会用编辑器打字了",font=("times",30,"normal")) len = screen.textinput("提示","你想要的爱心大小是:")
#turtle.done() size = int(len)
p1 = turtle.Pen() p1 = turtle.Pen()
p1.pensize(5) p1.pensize(5)
p1.pencolor("red") p1.pencolor("green")
p1.left(45) p1.left(45)
p1.forward(100) p1.forward(size*2)
p1.circle(50,180) p1.circle(size,180)
p1.right(90) p1.right(90)
p1.circle(50,180) p1.circle(size,180)
p1.forward(100) p1.forward(size*2)
turtle.done() turtle.done()
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