Commit 88ff3e3e by BellCodeEditor

save project

parent 0a6dc6a8
Showing with 6 additions and 2 deletions
...@@ -2,4 +2,8 @@ class hero: ...@@ -2,4 +2,8 @@ class hero:
def __init__(self): def __init__(self):
self.level=1 self.level=1
self.hp=300 self.hp=300
self.attack=20 self.attack=20
\ No newline at end of file
lixing=hero()
print(lixing.hp)
\ 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