라이브러리
함께해요 파이썬 생태계
The Zen of Python, by Tim Peters
- Beautiful is better than ugly.
- Explicit is better than implicit.
- Simple is better than complex.
- Complex is better than complicated.
- Flat is better than nested.
- Sparse is better than dense.
- Readability counts.
- Special cases aren't special enough to break the rules.
- Although practicality beats purity.
- Errors should never pass silently
- Unless explicitly silenced.
- In the face of ambiguity, refuse the temptation to guess.
- There should be one-- and preferably only one --obvious way to do it.
- Although that way may not be obvious at first unless you're Dutch.
- Now is better than never.
- Although never is often better than right now.
- If the implementation is hard to explain, it's a bad idea.
- If the implementation is easy to explain, it may be a good idea.
- Namespaces are one honking great idea -- let's do more of those!
1. 방정식
방정식 풀기 코드
2. 최빈값
최빈값 풀기 코드
3. deque
deque 개념
4. 반올림, 내림, 올림
math 개념
5. heap
heap
6. all , any
all, any
7. dictionary max value에 대한 key 찾기
dictonary max value
8. enumerate 와 items()
items()
items 는 dict를 튜플로 만들어 준다.
dict은 순서가 없고 튜플은 순서가 있어서 인덱싱 가능.
enumerate
enumerate 는 for 문에서 (index, value)같이 출력
9. itertools
itertools
10. sort
sort
11. a.reverse() 와 reversed(
reverse 개념
12. 반복문
13. 변수바꾸기
14. 문자열
문자열 정렬
알파벳 정렬
15. time
time
16. 정렬
정렬
17. math ( 추가 자료 요)
math
18. Syntatic Sugar
Syntatic Sugar
19. 제곱 제곱근
제곱
20. index()
index
21. tar
tar
22. f string 문자열 포맷팅
문자열 포맷팅
23. Open 파일 열기 모드 종류
file open
24. JSON to Pandas
json → dataframe
25. Pandas Dataframe 빈도 계산
dataframe count
26. Pickle
pickle
27. 예외처리
예외처리
28. collections
collections
29. ::
::
30. 상속
상속
31. super, self, str, init
기반 클래스 속성
32. os, glob, path (정리 필요)
경로
33. 정규식