Commit db69e3cb by BellCodeEditor

auto save

parent ffa2361e
Showing with 23 additions and 0 deletions
class Qw:
def __init__(self,name,hp,attack):
self.level=1
self.hp=hp
self.attack=attack
self.name=name
def b(self):
self.level=self.level+100000000000000000000000
self.hp=self.hp+50000000000000000000000
self.attack=self.attack+900000000000000000000000
# e=Qw()
# print(e.level)
# print(e.attack)
v=Qw('沙雕',400,20)
c=Qw('煞笔',200,50)
# print('呵呵之名:'+v.name+' 呵呵之力:'+str(v.attack))
# print('呵呵之名:'+c.name+' 呵呵之力:'+str(c.attack))
v.b()
c.b()
print('呵呵之名:'+v.name+' 呵呵之力:'+str(v.attack))
print('呵呵之名:'+c.name+' 呵呵之力:'+str(c.attack))
\ 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