Commit 6af3c8f7 by BellCodeEditor

save project

parent 915ead2a
Showing with 8 additions and 6 deletions
class Hero:
def __init__(self):
def __init__(self,nm,xl,gjl):
self.dj=1
self.xl=3000
self.gjl=250
yase=Hero()
print(yase.gjl)
\ No newline at end of file
self.nm=nm
self.xl=xl
self.gjl=gjl
yase=Hero("亚瑟",3000,250)
luban=Hero("鲁班七号",2800,320)
print(yase.gjl)
print(luban.gjl)
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