Commit 05cb2a14 by BellCodeEditor

save project

parent f7ac67d6
Showing with 4 additions and 4 deletions
...@@ -2,7 +2,7 @@ class hero: ...@@ -2,7 +2,7 @@ class hero:
def __init__(self): def __init__(self):
self.hp=5000 self.hp=5000
self.attack=500 self.attack=500
yase=hero() yase=hero(yase,5000,500)
print(yase.hp) houyi=hero(houyi,8000.800)
print(yase.hp.attack)
print(houyi.hp.attack)
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