正規表現モジュールと合わせるとカスタム置換とかできる
ゼロ埋め
'1'.zfill(3)
# '001'
文字カウント
'hello world'.count('l')
# 3
Go to list of users who liked
More than 5 years have passed since last update.
正規表現モジュールと合わせるとカスタム置換とかできる
ゼロ埋め
'1'.zfill(3)
# '001'
文字カウント
'hello world'.count('l')
# 3
Register as a new user and use Qiita more conveniently
Go to list of users who liked