728x90 반응형 index1 [Python] 문자열처리함수 : index와 find의 차이 lower(), upper() 소문자, 대문자 출력 python = "Python IS Amazing" #소문자 출력 print(python.lower()) #대문자 출력 print(python.upper()) #0번째 글자가 대문자인지 확인 print(python[0].isupper()) #0번째 글자가 소문자인지 확인 print(python[0].islower()) len() 글자 길이 확인(공백포함) python = "Python IS Amazing" print(len(python)) replace() 글자 대체 python = "Python IS Amazing" #글자의 일부분만 다른 글자로 대체 print(python.replace("Python", "JAVA")) index() 글자의 위치값 .. 2022. 12. 17. 이전 1 다음 728x90 반응형