Commit 21af3171 by BellCodeEditor

auto save

parent 370cf254
Showing with 49 additions and 6 deletions
username = "python" # 保存在服务器数据库中的用户账号(正确的账号)
userpassword = "123456" # 保存在服务器数据库中的用户密码(正确的密码)
# import turtle
# pen=turtle.Pen()
# pen.left(45)
# pen.forward(200)
# pen.left(90)
# pen.circle(100,180)
# pen.left(180)
# pen.forward(200)
# pen.right(90)
# pen.circle(-100,180)
# turtle.done()
# 请用input()实现用户输入账号、密码的功能
# import turtle
# pen=turtle.Pen()
# pen.goto(0,0)
# pen.pensize(5)
# pen.pencolor("blue")
# pen.circle(50)
# pen.up()
# pen.goto(100,0)
# pen.pensize(5)
# pen.pencolor("black")
# pen.downcle(50)
# pen.up()
# pen.goto(200,0)
# pen.pensize(5)
# pen.pencolor("red")
# pen.down()
# pen.circle(50)
# pen.up()
# pen.goto(50,-80)
# pen.pensize(5)
# pen.pencolor("yellow")
# pen.down()
# pen.circle(50)
# pen.up()
# pen.goto(150,-80)
# pen.pensize(5)
# pen.pencolor("green")
# pen.down()
# pen.circle(50)
# turtle.done()
# 如果用户输入的账号、密码正确,提示登陆成功
\ No newline at end of file
import turtle
pen=turtle.Pen()
screen=turtle.Screen()
screen.bgcolor("light yellow")
a=screen.textinput("提示","新年祝福语")
pen.write(a,font=("Times",20,"normal"))
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