Commit 21dae099 by BellCodeEditor

save project

parent 25839984
Showing with 2 additions and 2 deletions
......@@ -3,14 +3,14 @@ class Hero:
self.leve1 = 1
self.hp = 300
self.attack
yuyi = Hero("禹亦",250,250)
pp = Hero("屁屁"300300)
print("禹亦的攻击力是:"yuyi.attack)
print("屁屁的攻击力是:"pp.attack)
def upgrade():
def upgrade(self):
yuyi.level = yuyi.level + 1
yuyi.hp = yuyi.hp + 50
yuyi.attack = yuyi.attack + 4
......
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