Commit 6a690d95 by BellCodeEditor

save project

parent 22354288
Showing with 15 additions and 0 deletions
class hore:
def __init__(self,name,hp,attle):
self.level=1
self.name=name
self.hp=hp
self.attle=attle
def up(self):
self.level=self.level+1
self.hp=self.hp+10000
self.attle=self.attle+5000
houyi=hore("houyi",50000,10000)
houyi.up()
print(houyi.hp)
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