Commit 63785bc1 by BellCodeEditor

save project

parent 70850cf8
Showing with 12 additions and 0 deletions
class Yingxiong():
def __init__(self,mingzi,xueliang,gongjili):
self.level=1
self.name=mingzi
self.hp=xueliang
self.attack=gongjili
yase=Yingxiong("亚瑟",300,20)
houyi=Yingxiong("后羿",200,300)
print(houyi.hp)
\ 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