Commit 030e24ee by BellCodeEditor

save project

parent 22354288
Showing with 19 additions and 0 deletions
class sans():
def __init__(self,HP,AT,DF):
self.Level=1
self.HitPoint=HP
self.Attack=AT
self.Defense=DF
def Level_Up(a):
a.Level+=1
a.HitPoint+=1
a.Attack+=1
a.Defense+=1
# def Check(a,):
# print('等级为'+str(a.Level)
# print('生命值为'+str(a.HitPoint))
# print('攻击力为'+str(a.Attack))
# print('防御力为'+str(a.Defense))
Sans=sans(1,1,1)
Sans.Level_Up()
\ 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