250x250
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- fileinput
- inplace()
- randrange()
- JS
- mro()
- __getitem__
- View
- shutil
- choice()
- HTML
- count()
- 파이썬
- remove()
- fnmatch
- shuffle()
- locals()
- MySqlDB
- glob
- 오버라이딩
- discard()
- __annotations__
- CSS
- __sub__
- MySQL
- items()
- __len__
- Database
- zipfile
- node.js
- decode()
Archives
- Today
- Total
목록while (1)
흰둥이는 코드를 짤 때 짖어 (왈!왈!왈!왈!왈!왈!왈!왈!왈!왈!왈!)

1. 반복문 1-1. 자료형 참/거짓 판단하기 파이썬에서 사용하는 모든 자료형은 참 또는 거짓으로 표현이 가능 In [1]: bool1 = True print(bool1) print(type(bool1)) True In [6]: # 0 이 아닌 숫자는 모두 True, 0은 False num1 = 10 print(num1) print(type(num1)) print(bool(num1)) num2 = 0 print(num2) print(type(num2)) print(bool(num2)) 10 True 0 False In [10]: str1 = '안녕' print(str1) print(type(str1)) print(bool(str1)) str2 = '' print(str2) print(type(str2))..
파이썬 기초
2023. 3. 7. 16:02