Commit c60678e6 by BellCodeEditor

auto save

parent f47689a4
Showing with 15 additions and 0 deletions
class yixiong:
def __init__(self,name,hp,att):
self.lever=1
self.name=name
self.hp=hp
self.att=att
def shengji(self):
self.lever+=1
self.hp+=500
self.att+=50
yese=yixiong("亚瑟",3500,150)
for i in range(14):
yese.shengji()
print(yese.hp)
\ 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