Commit 4aba9b43 by BellCodeEditor

save project

parent 998e2aa9
Showing with 7 additions and 30 deletions
#导入 username="python"
import turtle userpassword="142857"
import random yourname=input("请输入您的用户账号:")
#背景 yourpassword=input("请输入您的用户密码:")
screen=turtle.Screen() if yourname==username and yourpassword==userpassword:
len=screen.textinput("灵魂拷问","how") print("登录成功")
lovesize=int(len) \ No newline at end of file
screen.bgcolor("pink")
#书写
pen=turtle.Pen()
pen.write("HI,\n康朗维",font=("Time",30,"normal"))
#爱心
pen1=turtle.Pen()
pen1.up()
pen1.goto(-150,0)
pen1.down()
pen1.pensize(10)
pen1.pencolor("red")
pen1.left(45)
pen1.forward(2*lovesize)
pen1.circle(lovesize,180)
pen1.right(90)
pen1.circle(lovesize,180)
pen1.forward(2*lovesize)
#隐藏画笔
pen.hideturtle()
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