Commit aff64f14 by BellCodeEditor

save project

parent d0c0a605
Showing with 9 additions and 7 deletions
class dldl:
def __init__(self):
self.hp=300
self.攻击=15
self.LV=15
def __init__(self,hp,攻击,LV):
self.hp=hp
self.攻击=攻击
self.LV=LV
y=dldl()
print(y.攻击)
\ No newline at end of file
y=dldl(300,15,1)
h=dldl(240,20,1)
print(y.攻击)
print(h.)
\ 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