Commit 4c5f74d3 by BellCodeEditor

save project

parent d6c81a0f
Showing with 34 additions and 0 deletions
class Hero:
def __init__(self,name,hp,attact):
self.level=1
self.name=name
self.hp=hp
self.attact=attact
yase=Hero('yase',4958,25)
def upgrade():
yase.level=yase.level+1
yase.attact=yase.attact+20
yase.hp=yase.hp+189
upgrade()
print('亚瑟的生命值:'+str(yase.hp))
#成都AG超玩会:一诺,爱思,笑影,啊泽,初晨
# 射手,辅助,法师,战边,打野
\ 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