티스토리 뷰

공부

[Python] string get index

승가비 2020. 4. 14. 04:55
728x90
str = 'Hell'
str[0:2] # 'He'

https://securityspecialist.tistory.com/60

 

1. 파이썬(Python) 문자열2(인덱싱,슬라이싱,포매팅,함수)

4. 문자열 인덱싱 및 슬라이싱 - 인덱싱(Indexing)이란 무엇인가를 ‘가르킨다’라는 의미입니다. - 슬라이싱(Slicing)이란 무엇인가를 ‘잘라낸다’라는 의미입니다. 4_1. 문자열 인덱싱이란? >>> string = ‘Hel..

securityspecialist.tistory.com

 

728x90

'공부' 카테고리의 다른 글

[Python] flask  (0) 2020.04.14
[Python] Ternary operator (3항 연산자)  (0) 2020.04.14
[MySQL] function `BEGIN SET i = 1;`  (0) 2020.04.14
[JS] decode HTML entity  (0) 2020.04.14
[Git] cancel add == reset  (0) 2020.04.14
댓글