Commit c88a72b5 by BellCodeEditor

save project

parent 590abbed
Showing with 4 additions and 4 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
yase = Hero("娅瑟",300,20) yase = Hero("娅瑟",300,20)
houyi = Hero("冯愚扔",0,0) fengyuren = Hero("冯愚扔",0,0)
print("娅瑟的血量:".hp) print("娅瑟的血量:",yase.hp)
print("冯愚扔的血量:".attack) print("冯愚扔的血量:",fengyuren.attack)
\ No newline at end of file \ 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