python:capitalize_upper_lower

大文字小文字変換(capitalize, upper, lower)

capitalize()
upper()
lower()
str = 'this is a pen.'
 
str.capitalize()
'This is a pen.'
 
str = 'This is a pen.'
 
str.upper()
'THIS IS A PEN.'
 
str.lower()
'this is a pen.'
  • python/capitalize_upper_lower.txt
  • 最終更新: 2019/08/19 06:51
  • by ともやん