Commit 903dc12b by BellCodeEditor

auto save

parent 453798cd
Showing with 2 additions and 2 deletions
import random
class Hero(object):
class Hero(object):#英雄类
def __init__(self, name):
self.name = name
self.level = 1
......@@ -27,7 +27,7 @@ class Hero(object):
print(info)
exit()
class Player(Hero):
class Player(Hero):#创建角色
def __init__(self,hero_type,name):
super().__init__(name)
self.hp = 1000
......
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