메모장 입니다2
Python] 문자열 자르기 본문
*원하는 문자가 나오는 지점까지 문자열 자르기
1)str='aaabbbcccdddGive' 에서 Give 전까지 자를거임
2)
>>str[:str.rfind("Give")]
>>str
'aaabbbcccddd'
'Study > Programming' 카테고리의 다른 글
Python] Asterisk (variable argument ) (0) | 2019.05.26 |
---|---|
정규표현식 practice [lesson 1 ~ lesson 10] (0) | 2019.05.09 |
codility] Nesting (0) | 2018.02.05 |
codility] Fish (0) | 2018.02.04 |
Windows] 파일 맵핑 (0) | 2018.01.30 |