Commit 12393420 by BellCodeEditor

save project

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