Commit 20fb836f by BellCodeEditor

save project

parent 52ff6323
Showing with 23 additions and 13 deletions
usename="happy"
userpassword="425521"
name=input("name")
name1=input("请输入mm")
if name ==usename and name1==userpassword:
print("登陆成功")
""" import turtle
请使用turtle模块画出五角星 pen=turtle.Pen()
""" screen=turtle.Screen()
import turtle screen.bgcolor("white")
pen=turtle.Pen() pen.write("呵呵\n你好",font=("Times",20,"normal"))
pen.fillcolor("blue") pen.penup()
pen.begin_fill() pen.pendown()
for i in range(36): len=screen.textinput("姓名框","你想要多大的爱心")
pen.forward(200) len=int(len)
pen.right(170 ) pen.left(45)
pen.end_fill() pen.forward(2*len)
pen.hideturtle() pen.circle(len,180)
turtle.done() pen.right(90)
pen.circle(len,180)
pen.forward(2*len)
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