Commit 35a6b4e9 by BellCodeEditor

save project

parent 227e39d6
Showing with 16 additions and 0 deletions
class Hero:
def __init__(self,dl,mz,sm,gj):
self.dj=1
self.mz=name
self.sm=sm
self.gj=gj
def one(self):
self.dj=self.dj+1
self.sm=self.sm+100
self.gj=self.gj+100
hy=Hero("后羿"220,160)
hy.one()
print("等级为:",hy.dj)
print(hy.sm)
print(hy.gj)
\ 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