Commit 6710b566 by BellCodeEditor

save project

parent 223a424f
Showing with 3 additions and 5 deletions
...@@ -2,8 +2,7 @@ class hero: ...@@ -2,8 +2,7 @@ class hero:
def __init__(self): def __init__(self):
self.level=1 self.level=1
self.hp=1500 self.hp=1500
self.attack=575 self.attack=600
luoerfu=hero() luoerfu=hero()
print(luoerfu.hp) print("luoerfu血量值为:"luoerfu.hp)
print(luoerfu.attack) print("luoerfu攻击为:"luoerfu.attack)
print(luoerfu.level)
\ 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