Commit a49c6c53 by BellCodeEditor

save project

parent d6c81a0f
Showing with 21 additions and 0 deletions
class Hero:
def __init__(self,name,hp,attack,wk,fj,fk):
self.level = 1
self.name = name
self.hp = hp
self.attack = attack
self.wk = wk
self.fj = fj
self.fk = fk
kai = Hero('铠',548,918,325,0,23)
def upgred():
kai.level = kai.level + 1
kai.hp = kai.hp + 53
kai.attack = kai.attack + 128
kai.wk = kai.wk + 38
kai.fj = kai.fj + 0
kai.fk = kai.fk + 11
print('铠:','生命',kai.hp,'物伤',kai.attack,'物抗',kai.wk,'法强',kai.fj,'法抗',kai.fk)
upgred()
upgred()
\ 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