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
- 필답형
- kaggle
- 비가변매개변수
- Collections
- 빅데이터분석기사
- matplotlib
- linalg.solve()
- Python
- np.load()
- 빅데이터
- heapmerge
- 가변매개변수
- numpy
- np.save()
- set_index
- Heapreplace
- 빅분기
- namedTuple
- coding
- Math Function
- list
- DEEPLEARNING
- os.path.join
- 작업형
- request Method
- 실기
- BASIC
- deg2rad
- np.savetxt()
- array
Archives
- Today
- Total
목록For (1)
맞춤형 플랫폼 개발 도전기 (웹개발, 딥러닝, 블록체인)
Python Basic 3 (Conditional : If , Loop : While, For)
if 문과 while 문은 너무 기본이기도 해서 코딩 문제 풀어볼 때 직접적으로 다루도록 하고, 여기서는 잊기 쉬운 문법이나 기억하면 좋을 (혹은 까먹기 쉬운) 내용들 위주로 짚고 넘어가겠다. If 1. SCE (Short-Circuit Evaluation) or : 왼쪽이 참인 경우 '왼쪽' 값 리턴, 왼쪽이 거짓인 경우 '오른쪽' 값 리턴 (참 → 그대로) and : 왼쪽이 참인 경우 '오른쪽' 값 리턴, 왼쪽이 거짓인 경우 '왼쪽' 값 리턴 (참 → 반대) 은근히 많이 쓰임 result = 0 or 100 # 참인데... or 의 결과가 True 가 아니다? int 100 이다? result = "Hello" or "Python" # "Hello" result = "Hello" and "Python..
코딩
2021. 11. 3. 00:08