Commit 198e1d42 by BellCodeEditor

save project

parent 1e299ad0
Showing with 10 additions and 10 deletions
......@@ -5,16 +5,16 @@ class hero:
self.xueliang=xueliang
self.goji=goji
self.fangyu=fangyu
def a(self):
#yuse.dengji=yuse.dengji+1
self.xueliang=self.xueliang+100
self.goji=self.goji+30
self.fangyu=self.fangyu+40
yuse=hero("亚瑟",100,20,50,1)
yuse2=hero("后裔",60,80,30,1)
def a():
#yuse.dengji=yuse.dengji+1
yuse.xueliang=yuse.xueliang+100
yuse.goji=yuse.goji+30
yuse.fangyu=yuse.fangyu+40
a()
a()
print(yuse.xueliang)
\ No newline at end of file
yuse2.a()
yuse2.a()
print(yuse2.xueliang)
\ 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