Commit fd9c137d by BellCodeEditor

save project

parent b5a80d3f
Showing with 8 additions and 6 deletions
...@@ -4,9 +4,11 @@ class loser: ...@@ -4,9 +4,11 @@ class loser:
self.name=name self.name=name
self.hp=hp self.hp=hp
self.at=at self.at=at
def up(self):
self.lv=self.lv+1
self.hp=self.hp+100
self.hp=self.hp+10
xxx=loser('Xxx',1,99999) xxx=loser('Xxx',1,99999)
def up():
xxx.lv=xxx.lv+1 xxx.up()
xxx.hp=xxx.hp+100 print(xxx.lv)
xxx.hp=xxx.hp+10 \ No newline at end of file
up()
\ 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