Commit 0f6410d9 by BellCodeEditor

save project

parent ea39d2e3
Showing with 7 additions and 5 deletions
def
\ No newline at end of file
......@@ -9,8 +9,8 @@ class zhuanwu:
self.hp=self.hp+50
self.attack=self.attack+4
liuhaizhu = zhuanwu("刘海柱",240,23)
liuhaizhu.upgrade()
print("刘海柱的初始血量为",liuhaizhu.hp)
print("刘海柱攻击力为",liuhaizhu. attack)
print("刘海柱的等级为",liuhaizhu.leave)
VAN = zhuanwu("VAN",240,23)
VAN.upgrade()
print("VAN的初始血量为",VAN.hp)
print("VAN攻击力为",VAN.attack)
print("VAN的等级为",VAN.leave)
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