Commit 0ce1a988 by BellCodeEditor

save project

parent 8da6ff0c
Showing with 12 additions and 122 deletions
...@@ -4,129 +4,18 @@ class Wanzi: ...@@ -4,129 +4,18 @@ class Wanzi:
self.name=name self.name=name
self.hp=hp self.hp=hp
self.attack=attack self.attack=attack
def up(): def up(self):
saniaoniuwan.level=saniaoniuwan.level+1 self.level=self.level+1
saniaoniuwan.hp=saniaoniuwan.hp-1 self.hp=self.hp-1
saniaoniuwan.attack=saniaoniuwan.attack+1 self.attack=self.attack+1
saniaoniuwan=Wanzi("撒尿牛丸",0,0) saniaoniuwan=Wanzi("撒尿牛丸",0,0)
up() saniaoniuwan.up()
up() saniaoniuwan.up()
up() saniaoniuwan.up()
up()
up()
up()
up()
up()
up()
up()
up()
up()
up()
up()
up()
up()
up()
up()
up()
up()
up()
up()
up()
up()
up()
up()
up()
up()
up()
up()
up()
up()
up()
up()
up()
up()
up()
up()
up()
up()
up()
up()
up()
up()
up()
up()
up()
up()
up()
up()
up()
up()
up()
up()
up()
up()
up()
up()
up()
up()
up()
up()
up()
up()
up()
up()
up()
up()
up()
up()
up()
up()
up()
up()
up()
up()
up()
up()
up()
up()
up()
up()
up()
up()
up()
up()
up()
up()
up()
up()
up()
up()
up()
up()
up()
up()
up()
up()
up()
up()
up()
up()
up()
up()
up()
up()
up()
up()
up()
up()
up()
up()
up()
up()
up()
up()
up()
up()
sanxianwanzi=Wanzi("三鲜丸子",250,0) sanxianwanzi=Wanzi("三鲜丸子",250,0)
sanxianwanzi.up
sanxianwanzi.up
sanxianwanzi.up
print("撒尿牛丸的血量是",saniaoniuwan.hp) print("撒尿牛丸的血量是",saniaoniuwan.hp)
print("三鲜丸子的血量是",sanxianwanzi.hp) print("三鲜丸子的血量是",sanxianwanzi.hp)
\ 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