Commit e0569396 by BellCodeEditor

save project

parent 22354288
Showing with 20 additions and 0 deletions
class YingXiong:
def __init__(self,name,dengji,xueliang,fangyu,gongji):
self.ab=name
self.ag=dengji
self.qbes=xueliang
self.qb=fangyu
self.stey=gongji
def sengji(self):
self.ag=self.ag+1
self.qbes=self.qbes+700
self.qb=self.qb*3
self.stey=self.stey*2
q=YingXiong('典韦',1,3600,25,350)
w=YingXiong('后羿',1,3400,10,370)
q.sengji()
w.sengji()
print(q.ag)
print(w.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