Commit 6849d235 by BellCodeEditor

save project

parent 22354288
Showing with 21 additions and 0 deletions
class ys:
def __init__(self,mz,xl,gj):
self.dj=1
self.mz=mz
self.xl=xl
self.gj=gj
def djup(self):
self.dj=self.dj+1
self.xl=self.xl+1
self.gj=self.gj+1.5
js1=ys('ml',2,3)
js2=ys('df',3,5)
js1.djup()
js2.djup()
print(js1.xl)
print(js2.xl)
\ 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