Commit 1d87aa26 by BellCodeEditor

auto save

parent 70850cf8
Showing with 13 additions and 0 deletions
class hero:
def __init__(delf,name,hp):
delf.name=name
delf.level=2
delf.hp=hp
yase=hero('yase',300)
def Sj():
yase.level=yase.level+1
yase.hp=yase.hp+1
Sj()
Sj()
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