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
- while
- DS
- Algorithm
- XML
- MIPS
- react
- control
- web
- computer
- Pipelining
- mysql
- MacOS
- data structure
- Java
- system
- CSS
- html
- DoM
- Class
- function
- instruction
- for
- python
- github
- Linux
- DATAPATH
- php
- DB
- javascript
- architecture
Archives
- Today
- Total
목록join (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