差分
このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン | ||
python:capitalize_upper_lower [2019/06/10 16:49] – ともやん | python:capitalize_upper_lower [2019/08/19 06:51] (現在) – ともやん | ||
---|---|---|---|
行 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() |