Commit 63a46443 by BellCodeEditor

save project

parent bb86acb0
Showing with 4 additions and 2 deletions
...@@ -4,6 +4,8 @@ class Hero ...@@ -4,6 +4,8 @@ class Hero
self.hp = 300 self.hp = 300
self.attack self.attack
yuyi = Hero() yuyi = Hero("禹亦"250,250)
print(yuyi.attack) pp = Hero("屁屁"300300)
print("禹亦的攻击力是:"yuyi.attack)
print("屁屁的攻击力是:"pp.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