
Python에서 문자열을 소문자로 변환하는 방법
2022-10-18 last update
4 minutes reading Python때로는 문자열을 소문자(모든 문자)로 변환해야 할 수도 있습니다. 이 튜토리얼은 아래 이미지와 같이 문자열(모든 경우)을 소문자로 변환하는 데 도움이 됩니다.
>>> print(s.lower())12>>> s = "Hello Python">>> print(s.lower()) Convert String to Uppercase in Python Python Convert String to Lowercase

문자열을 소문자로 변환
Python 프로그래밍 언어에서는lower()
메서드를 사용하여 모든 문자열을 소문자로 변환할 수 있습니다. 다음은 문자열을 소문자로 변환하는 샘플 Python 코드입니다.>>> s = "Hello Python">>> print(s.lower())12>>> s = "Hello Python">>> print(s.lower())
Outputhello python