Commit 4d728ba9 by BellCodeEditor

save project

parent ffc7fd2b
Showing with 4 additions and 4 deletions
class Hero() class Hero():
def_init_(self,name,up,attack) def __init__(self,name,up,attack):
self.level = 1 self.level = 1
self.up = 300 self.up = 300
self.attack = 40 self.attack = 40
self.name =name self.name =name
def up(): def up(self):
self.level=yase.level+1 self.level=self.level+1
self.up=yase.up+50 self.up=yase.up+50
self.attack=yase.attack+4 self.attack=yase.attack+4
yase=Hero("亚瑟"300,20) yase=Hero("亚瑟"300,20)
......
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