Commit 1ad1795f by BellCodeEditor

save project

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