변수1 Python 자료형 1. int형 >>> number = 10 >>> type(number) >>> number = int(10) >>> type(number) 2. float형 >>> number = 10.0 >>> type(number) >>> number = float(10) >>> type(number) 3. bool형 - True, False >>> result = True >>> type(result) >>> result = False >>> type(result) >>> result = bool(1) >>> type(result) >>> result True >>> result = bool(100) >>> type(result) >>> result True >>> result = bool(0) >>> type(.. 2020. 5. 27. 이전 1 다음