Commit 20fb836f by BellCodeEditor

save project

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