Commit 1ad1795f by BellCodeEditor

save project

parent 5d6d70bf
Showing with 9 additions and 6 deletions
class Hero: class card:
def __init__(self): def __init__(self):
self.lv=8 self.LV=12
self.HP=8000 self.HP=8000
self.ATK=3000 self.ATK=3000
self.DEF=2500 self.DEF=2500
qingzhiyanyase=Hero() bailong=card()
print(qingzhiyanyase.HP) print(bailong.HP)
\ No newline at end of file print(bailong.ATK)
print(bailong.DEF)
print(bailong.LV)
\ No newline at end of file
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