Commit 582da13f by BellCodeEditor

save project

parent d6c81a0f
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
q=YingXiong('典韦',1,3600,25,350)
w=YingXiong('后羿',1,3400,10,370)
def sengji():
q.ag=q.ag+1
q.qbes=q.qbes+700
q.qb=q.qb*3
q.stey=q.stey*2
sengji()
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