일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- 리액트
- EC2
- Notification
- navigation
- MongoDB
- Push
- 레이아웃
- NATIVE
- Python
- 네비게이션
- github
- graphql
- 스코프
- JS
- 면접
- 배포
- 디자인
- Background
- AWS
- React
- Express
- 카카오
- 후기
- 변수
- 네이티브
- scope
- 자바스크립트
- ubuntu
- 알림
- JavaScript
Archives
- Today
- Total
목록replaceright (1)
어서와, 개발은 처음이지?
반응형
파이썬 replace() 문자열 제거, 수정(변환)
1. 문자열 변경(replace) 파이썬은 문자열 변경을 할 수 있는 replace 함수를 제공합니다. replace와 replaceAll이 나눠져있는 자바와 혼동될 때가 있어서 메모합니다. replace()의 사용 방법은 아래와 같습니다. replace(old, new, [count]) -> replace("찾을값", "바꿀값", [바꿀횟수]) text = '123,456,789,999' replaceAll= text.replace(",","") replace_t1 = text.replace(",", "",1) replace_t2 = text.replace(",", "",2) replace_t3 = text.replace(",", "",3) print("결과 :") print(replaceAll) pr..
Python
2019. 2. 24. 13:30
반응형