Commit bc3afb6f by BellCodeEditor

save project

parent 8f8cd5c4
Showing with 6 additions and 3 deletions
class Hero: class Hero:
def__init__(self): def__init__(self,姓名,血量,攻击力):
self.等级=1 self.等级=1
self.血量=300 self.姓名=姓名
self.攻击力=20 self.血量=血量
self.攻击力=攻击力
瑞雯=Hero(瑞雯,300,20)
习景舒=Hero(习景舒,999,299)
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