Commit 44492001 by BellCodeEditor

save project

parent d6c81a0f
Showing with 11 additions and 0 deletions
class Hero:
def__init__(self,name,level):
self.name=name
self.level=level
yase=Hero("亚瑟",1)
def upgrade():
yase.level=yase.level+1
print(yase.level)
upgrade()
print(yase.level)
\ 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