Commit a225f3de by BellCodeEditor

save project

parent a50ceeec
Showing with 55 additions and 0 deletions
import turtle
pen=turtle.Pen()
x=0
y=0
a=20
for i in range(5):
for i in range(4):
pen.forward(a)
pen.right(90)
pen.penup()
x=x-10
y=y+10
a=a+20
pen.goto(x,y)
pen.pendown()
turtle.done()
bros=["刘备","关羽","张飞"]
for i in bros():
print(i)
print(bros)
\ No newline at end of file
import turtle
pen=turtle.pen()
pen1=turtle.pen()
screen=turtle.Screen()
len=screen.textinput("标题","你要多大的爱心:")
ren=screen.textinput("标题","你要什么文字:")
pen1.write(ren,font("Times",20,"normal"))
lovesize=int(len)
pen.left(45)
pen.forward(2*lovesize)
pen.circle(lovesize,180)
pen.right(90)
pen.circle(lovesize,180)
pen.forward(lovesize*2)
ren=screen.textinput("标题","你要什么文字:")
pen1.write(ren,font(Tinles,20,normat))
pen.hideturtle()
turtle.done()
import turtle
pen1=turtle.Pen()
screen=turtle.Screen()
AAA=screen.textinput("标题","你要什么文字:")
pen1.write(AAA,font=("Times",20,"normal"))
pen1.hideturtle()
turtle.done()
rz="LLL"
rm="lll"
z=input("请输入你的账号:")
m=input("请输入你的密码: ")
if rz==z and rm==m:
print("登入成功")
else :
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