Commit a965686f by BellCodeEditor

auto save

parent 00afa4a2
Showing with 6 additions and 7 deletions
......@@ -4,11 +4,10 @@ class hero():
self.name=name
self.hp=hp
self.gongji=gongji
def aua(self):
self.dengji=self.dengji+1
self.hp=self.hp+30
self.gongji=self.gongji+10
lan=hero("澜",180,70)
aua()
def aua(self):
self.dengji=self.dengji+1
self.hp=self.hp+30
self.gongji=self.gongji+10
lan=hero("澜",180,60)
lan.aua()
print(lan.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