Commit 7919f6a6 by BellCodeEditor

save project

parent 64f83fda
Showing with 6 additions and 4 deletions
class Hero:
def __init__(self,name,hp,attack,wk):
def __init__(self,name,hp,attack,wk,fj,fk):
self.level = 1
self.name = name
self.hp = hp
self.attack = attack
self.wk = wk
kai = Hero('铠',3240,5848,1547)
print('铠:',kai.hp,kai.attack,kai.wk)
\ No newline at end of file
self.fj = fj
self.fk = fk
kai = Hero('铠',3240,5848,1547,0,343)
print('铠:','生命',kai.hp,'物伤',kai.attack,'物抗',kai.wk,'法强',kai.fj,'法抗',kai.fk)
\ 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