Python 클래스, 객체, GUI
● 파이썬 클래스, 객체 개념, 코드 연습 class Television: def __init__(self, channel, volume, on): self.channel = channel self.volume = volume self.on = on def show(self): print(self.channel,self.volume, self.on) def setChannel(self, channel): self.channel = channel def getChannel(self): return self.channel t = Television(9, 10, True) t.show() t.setChannel(90) t.show() ''' 원을 클래스로 구현하시오. 클래스 이름은 Circle로 한다. - 생..
더보기