Commit 703770ae by BellCodeEditor

save project

parent 2d70dbdb
Showing with 32 additions and 17 deletions
# 利用write()帮助悟空给诺依回信吧~ # 利用write()帮助悟空给诺依回信吧~
# import turtle
# screen=turtle.Screen()
# screen.bgcolor("blue")
# pen=turtle.Pen()
# pen.penup()
# pen.goto(100,-100)
# pen.write("你好,你的信\n真的好丑啊!!\n我的信才好看",font=("times","20","normal"))
# pen.hideturtle()
# lovesize=screen.textinput("提示","你想要画多大的爱心?")
# len=int(lovesize)
# pen1=turtle.Pen()
# pen1.left(45)
# pen1.forward(len*2)
# pen1.circle(len,180)
# pen1.right(90)
# pen1.circle(len,180)
# pen1.forward(len*2)
# pen1.hideturtle()
# turtle.done()
import turtle import turtle
screen=turtle.Screen() screen=turtle.Screen()
screen.bgcolor("blue")
pen=turtle.Pen() pen=turtle.Pen()
pen.penup() size=int(screen.textinput("提示","你想要画多大的魔法阵?"))
pen.goto(100,-100) pen.circle(size)
pen.write("你好,你的信\n真的好丑啊!!\n我的信才好看",font=("times","20","normal")) pen.circle(size,360,3)
pen.hideturtle() pen.circle(size,60)
lovesize=screen.textinput("提示","你想要画多大的爱心?") pen.circle(size,360,3)
len=int(lovesize) turtle.done()
pen1=turtle.Pen()
pen1.left(45)
pen1.forward(len*2)
pen1.circle(len,180)
pen1.right(90)
pen1.circle(len,180)
pen1.forward(len*2)
pen1.hideturtle()
turtle.done()
\ No newline at end of file
name= 'python'
password= '123456'
username = input("请输入账号:")
userpassword = input("请输入密码:")
if name==username and password==userpassword:
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