Commit a965686f by BellCodeEditor

auto save

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