Commit e6009389 by BellCodeEditor

save project

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