Commit 2e69805d by BellCodeEditor

save project

parent 481b3cc7
Showing with 8 additions and 1 deletions
......@@ -24,7 +24,14 @@ class Hero: # 英雄类
class Player(): # 玩家英雄
def __init__(self,name):
???
pass()
class Player():
def __init__(self, name): # 实例属性
self.name = name
self.level = 1
self.hp = 200
self.attack = 50
self.max_hp = self.hp
player = Player("后羿")
......
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