Commit 5a3419c9 by BellCodeEditor

auto save

parent a2673be4
Showing with 3 additions and 3 deletions
class Hero:
class Hero:
def __init__(self,name,hp,attack):
self.level=1
self.name=name
......@@ -6,7 +6,7 @@ class Hero:
self.attack=attack
yase=Hero('yase',300,20)
houyi=Hero('hy',240,23)
print(yase.attack)print(垭瑟的血量为:"yase.hp)
print(yase.attack)
print(yase.attack)
print(后羿的血量为:"houyi.hp)
print(垭瑟的血量为:"yase.hp)
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