Commit 12393420 by BellCodeEditor

save project

parent 55d31970
Showing with 7 additions and 7 deletions
class liero:
det_init_(self, level, hp, gongjili):
self.level = level
self.hp = he
self.gongjili = gongjili
def __init__(self, level, hp, gongjili):
self.level = level
self.hp = hp
self.gongjili = gongjili
return f'等级是{self.level},血量是{helf.hp},攻击力是{self.gongjili}'
yase = hero(1, 3000, 20)
yase = liero(1, 3000, 20)
print(yase)
\ 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