파이썬 title()

1 개요[ | ]

Python title()
파이썬 title()
  • 문자열 내 띄어쓰기 기준으로 각 단어의 첫글자는 대문자로, 나머지는 소문자로 변환한다.
print("FooBar".title()) # Foobar

print("hello world!".title())       # Hello World!
print("i with dot".title())         # I With Dot
print("'n ijsberg".title())         # 'N Ijsberg
print("here comes O'Brian".title()) # Here Comes O'Brian

print("her royal highness".title()) # Her Royal Highness
print("loud noises".title())        # Loud Noises
print("хлеб".title())               # Хлеб

2 같이 보기[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}