Commit ea5744fa by BellCodeEditor

save project

parent d6c81a0f
Showing with 16 additions and 0 deletions
class hero:
def __init__(self,q,d,f,j):
self.name= q
self.xueliang = d
self.dengji = f
self.lan = j
yase = hero('亚瑟',300,1,20)
def upgrade():
yase.dengji=yase.dengji+1
yase.xueliang=yase.xueliang+50
yase.lan=yase.lan+4
upgrade()
upgrade()
\ 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