Commit 4756e3ec by BellCodeEditor

save project

parent eb1cf805
Showing with 0 additions and 12 deletions
class heor():
def __init__(self,a,b,c):
self.hp=a
self.level=b
self.attack=c
def upgrade():
self.hp+=40
self.level+=1
self.attack+=30
yase=heor(1,500,40)
upgrade()
print("亚瑟的血量是:"yase.hp)
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