Commit e56fdc96 by BellCodeEditor

save project

parent f3f6b552
Showing with 1 additions and 1 deletions
...@@ -5,6 +5,6 @@ class hero: ...@@ -5,6 +5,6 @@ class hero:
self.hp=hp self.hp=hp
self.attack=attack self.attack=attack
n=hero("xiaoweilaoshi",300,20) n=hero("xiaoweilaoshi",300,20)
m=hero("wangxijin",240,23) m=hero("wangxijin",240,100)
print(n.name,n.hp,n.attack) print(n.name,n.hp,n.attack)
print(m.name,m.hp,m.attack) print(m.name,m.hp,m.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