差分
このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン 前のリビジョン | 次のリビジョン両方とも次のリビジョン | ||
python:capitalize_upper_lower [2019/06/10 16:49] – ともやん | python:capitalize_upper_lower [2019/06/10 17:02] – [capitalize, upper, lower] ともやん | ||
---|---|---|---|
行 9: | 行 9: | ||
<code python> | <code python> | ||
- | str = "this is a pen." | + | str = 'this is a pen.' |
str.capitalize() | str.capitalize() | ||
'This is a pen.' | 'This is a pen.' | ||
- | str = "This is a pen." | + | str = 'This is a pen.' |
str.upper() | str.upper() |