Commit 15508de8 by BellCodeEditor

save project

parent 22354288
Showing with 16 additions and 0 deletions
class H:
def __init__(self,n,hp,at):
self.lv=1
self.n=n
self.hp=hp
self.at=at
def a1(self):
self.lv=self.lv+1
self.hp=self.hp+50
self.at=self.at+4
ya=H("ya",200,20)
ya.a1()
print("ya血量:",ya.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