Commit d4b0525a by BellCodeEditor

save project

parent de6ae744
Showing with 36 additions and 9 deletions
import turtle as a
a.penup()
a.goto(0,-150)
a.pendown()
a.pensize(2)
a.setheading(90)
a.color("brown")
a.forward(300)
a.pensize(1)
a.color('black','red')
a.begin_fill()
for i in range(10):
a.left(45)
a.circle(80,60)
a.left(120)
a.circle(80,60)
a.end_fill()
for i in range(2):
a.penup()
a.goto(0,10-50*i)
x=20+80*i
a.setheading(x)
a.pendown()
a.color('brown','green')
a.begin_fill()
a.circle(60,60)
a.left(120)
a.circle(60,60)
a.end_fill()
a.hideturtle()
a.done()
name = input("请输入你的名字:")
print(name+",你是最棒的创造师耶!")
\ No newline at end of file
class Hero:
def=__init__(self,name,hp,attack):
self.leven=1
self.name=name
self.hp=hp
self.attack=attack
yase=Hero("亚瑟",300,20)
houyi=Hero("后翌",240,23)
print("亚瑟的血量为:",yase.hp)
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