Commit f11ab7a5 by BellCodeEditor

save project

parent 6b2f8f49
Showing with 6 additions and 2 deletions
...@@ -4,5 +4,8 @@ class Hero: ...@@ -4,5 +4,8 @@ class Hero:
self.name=name self.name=name
self.level=1 self.level=1
self.attack=attack self.attack=attack
yase=Hero("yase",300,240) yase=Hero("🐎牛B",300,240)
hongyi=Hero("hongyi",300,240)
# hongyi=Hero("hongyi",300,240)
print(yase.hp)
print(yase.attack)
\ 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