2009-10-28から1日間の記事一覧
Pythonで文字列の大文字・小文字の変換をするには文字列メソッドupper()とlower()を使う。 >>> string = 'gattaca' >>> string.upper() 'GATTACA' >>> string.lower() 'gattaca'
Pythonで文字列の大文字・小文字の変換をするには文字列メソッドupper()とlower()を使う。 >>> string = 'gattaca' >>> string.upper() 'GATTACA' >>> string.lower() 'gattaca'