Commit c4edfe09 by BellCodeEditor

save project

parent fde77daf
Showing with 2 additions and 0 deletions
......@@ -4,10 +4,12 @@ class Hero: #类
self.hp=hp
self.leve=1
self.attack=attack
def upgrade():
www.leve+=1
www.hp+=50
www.attack+=5
www=Hero("sdeg",300,20)
upgrade()
upgrade()
......
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