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("登陆成功")
"""
请使用turtle模块画出五角星
"""
import turtle
pen=turtle.Pen()
pen.fillcolor("blue")
pen.begin_fill()
for i in range(36):
pen.forward(200)
pen.right(170 )
pen.end_fill()
pen.hideturtle()
turtle.done()
import turtle
pen=turtle.Pen()
screen=turtle.Screen()
screen.bgcolor("white")
pen.write("呵呵\n你好",font=("Times",20,"normal"))
pen.penup()
pen.pendown()
len=screen.textinput("姓名框","你想要多大的爱心")
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()
\ 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