Commit 724cbab1 by BellCodeEditor

save project

parent 1d03c5c8
Showing with 16 additions and 1 deletions
class here:
def __init__(self,name,hp,attack):
self.level=1
self.name=name
self.hp=hp
self.attack=attack
def statin(self):
self.level=self.level+1
self.hp=self.hp+20
self.attack=self.attack+50
yase=here("亚瑟",20,50)
yase.statin()
print(yase.name)
print(yase.hp)
print(yase.attack)
\ 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