Notice
Recent Posts
Recent Comments
Link
250x250
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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
- react
- html
- Java
- MIPS
- function
- XML
- AI
- instruction
- Algorithm
- architecture
- control
- CSS
- Rag
- computer
- Pipelining
- web
- mysql
- DATAPATH
- for
- openai
- Class
- Linux
- github
- python
- data structure
- javascript
- DB
- php
- DS
- system
Archives
- Today
- Total
목록split (1)
YYYEJI
문자열을 나누는 함수는 split 함수입니다. str = "Hi there, i am yeji" str = str.split() print(str) 특정 문자를 기준으로 나눌 수도 있습니다. str = "1:0" str = str.split(":") print(str) 리스트로 나눠진 문자들을 한 문자열로 합칠수도 있습니다. greeting = ['Hi', 'there,', 'my', 'name', 'is', 'Yeji'] greeting = " ".join(greeting) print(greeting) ◡̈
Python
2022. 9. 24. 00:27