Commit 665bdf89 by BellCodeEditor

auto save

parent a3549ba0
Showing with 8 additions and 7 deletions
class ZuoZi:
def __showinit__(self,length,width,height);
def __init__(self,length,width,height);
self.length=length
self.width=width
self.height=height
s=ZuoZi(1,2,3)
b=ZuoZi(3,2,1)
print(ZuoZi.length)
print(b)
Breakpoint
\ No newline at end of file
def showinfo(self)
print('桌子的长度:'self.length,'宽度:'self.width,'高度:'self.height)
s=ZuoZi(11,22,33)
b=ZuoZi(33,22,11)
s.showinfo()
b.showinfo(w)
\ 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