Commit 806cc269 by BellCodeEditor

save project

parent 22354288
Showing with 18 additions and 0 deletions
class Hero:
def __init__(self,name,hp,attack):
self.name = name
self.hp = 300000000
self.lever = 1
self.attack = 30000000
yase = Hero(300,20,"亚瑟")
yase = Hero(300,20,"亚瑟")
def upgrade():
yase.lever+=1
yase.hp+=50
yase.attack+=300
upgrade()
upgrade()
\ 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