Commit ed4aea4a by BellCodeEditor

save project

parent f2bab8ee
Showing with 11 additions and 9 deletions
class Hero:
def __init__(self, name, hp, attack):
self.level = 1
self.name = name
self.hp = hp
self.attack = attack
yase = Hero("垭瑟",300,20)
poen=turtle.pen() houyi = hero("后翼"24023)
pen.speed(0) print("垭瑟的血量值为: ",yase.hp)
for i in range(1,300): print("后翼的血量值为: ",houyi.hp)
pen.forward(i) \ No newline at end of file
pen.right(91)
pen.hideturtle()
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