Commit a086e75c by BellCodeEditor

save project

parent ff75fcb8
Showing with 6 additions and 0 deletions
......@@ -5,5 +5,11 @@ class aa:
self.gongji=gongji
zz=aa(1,500,30)
xxs=aa(1,300,50)
def shuxing(self):
self.denji=self.denji+1
self.xueliang=self.xueliang+100
self.gongji=self.gongji+10
shuxing(zz)
shuxing(xxs)
print(zz.xueliang)
print(xxs.xueliang)
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