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 |
Tags
- Cast
- wordembedding
- github2FA
- 지도시각화
- json
- str.replace
- ExplicitData
- Visualization
- gluonnlp
- DIF_SR
- numpy.bool
- LatentFactorModel
- jsonl
- session-basedRecommendation
- Python
- implicitData
- VScodeNotResponding
- iterrows
- 텐서플로자격증
- Convert
- MatrixFactorization
- jsonlines
- decimal error
- Colab
- BloombergMarketConcepts
- MySQL
- pandas
- sshtunnel
- TensorflowDeveloperCertificate
- vscode
Archives
- Today
- Total
목록split (1)
garret

알고리즘 공부하면서 알게 된 join() 함수. split() 과 비교하면서 공부하면서 좋을 거 같아 정리. split() 함수 string.split(separator, maxsplit) split() 함수는 string을 list로 분할해주는 함수. separator character를 기준으로 분할된다. separator의 디폴트 값은 공백(whitespace) maxsplit에는 분할할 개수 지정 split() 사용예시 txt = "mango$blueberry$kiwi$melon" x = txt.split('$',1) print(x) $ 기준으로 분할하고 1번만 분할하라는 뜻 1번만 분할되어 2개의 element로 쪼개진 걸 확인 할 수 있다. join() 함수 string.join(iterabl..
Programming/Python
2023. 6. 1. 00:05