Commit bb0fa593 by BellCodeEditor

save project

parent e04e2cfc
Showing with 8 additions and 8 deletions
class yingxiong:
def __init__(self):
self.gongjili=20
self.HP=3000
yase=yingxiong()
print(yase.HP)
\ No newline at end of file
def __init__(self,name,HP,MP,A):
self.leve1=1
self.HP=HP
self.MP=MP
self.A=A
LuBan=yingxiong("yingxiong",3000,200,100)
print(LuBan.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