Commit 26ac6a76 by BellCodeEditor

save project

parent d493d152
Showing with 15 additions and 4 deletions
...@@ -5,8 +5,20 @@ class Hero: ...@@ -5,8 +5,20 @@ class Hero:
self.hp=hp self.hp=hp
self.attack=attack self.attack=attack
yase=Hero('yase',300,20) yase=Hero('yase',300,20)
hy=Hero('hy',250,23) hy=Hero('hy',250,25)
k=Hero('K',5600,199) k=Hero('k',560,30)
huangzhong=('huangzhong',700,33)
luban=('luban',199,19)
print(yase.attack) print(yase.attack)
print(yase.hp)
print(hy.attack) print(hy.attack)
print(k.attack) print(hy.hp)
\ No newline at end of file print(k.attack)
print(k.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