Commit c0603fab by BellCodeEditor

save project

parent 0ea6124c
Showing with 5 additions and 4 deletions
# 英雄角色类
class Hero(object):
def __init__(self, name):
self.level = 1
self.hp = 300
self.attack = 20
self.level = self.level
self.hp = self.hp
self.attack = self.attack
self.name = name
yase = Hero("垭瑟")
yase = Hero("垭瑟"30020)
yase = Hero("后羿"25023)
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