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
- elbow method
- dendrogram
- count()
- sklearn
- analizer
- IN
- pandas
- matplotlib
- nan
- numpy
- Dictionary
- DataFrame
- 분류 결과표
- DataAccess
- 덴드로그램
- hierarchical_clustering
- list
- del
- 반복문
- len()
- string
- 최솟값
- Machine Learning
- Python
- insert()
- function
- data
- 최댓값
- wcss
- append()
Archives
- Today
- Total
개발공부
[Python] String 변경, replace() 본문
문자열 변경
- 문자열은 immutable 이다. 따라서 한번 생성된 문자열 자체를 바꾸는것은 할 수 없다.
- 따라서, 새로운 메모리에 변경한 문자열을 새로 만드는 방법을 사용하게 된다.
replace('a' , 'b')
-문자열 내의 a를 b로 바꾸는 함수이다.
'Python > Basic' 카테고리의 다른 글
[Python] String count(), in, startswith() (0) | 2022.04.20 |
---|---|
[Python] String len(), find(), rfind() (0) | 2022.04.20 |
[Python]String +연산자, upper(), lower(), title(), spit() (0) | 2022.04.20 |
[Python] String 특징, 생성, Slicing(슬라이싱) (0) | 2022.04.20 |
[Python]Boolean (0) | 2022.04.20 |