Commit 27d691dd by BellCodeEditor

save project

parent 44b2ef21
Showing with 11 additions and 4 deletions
class Hero:
def__int__(self)
self.level=1
def__int__(self,name,hp,attack)
self.level
self.name
self.hp=300
self.attack=20
self.hp
self.attack
yase=Hero()
print(yase,300,20)
print(houyi,250,23)
def wu()
yase.level=levels+1
yase.hp=hp+50
self.attack=attack+4
wu()
wu()
\ 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