差分
このページの2つのバージョン間の差分を表示します。
次のリビジョン | 前のリビジョン最新のリビジョン両方とも次のリビジョン | ||
python:count [2019/06/10 16:58] – 作成 ともやん | python:count [2019/07/27 04:59] – ともやん | ||
---|---|---|---|
行 1: | 行 1: | ||
+ | <ifauth !@loggedinusers>< | ||
+ | <script async src="// | ||
+ | < | ||
+ | | ||
+ | google_ad_client: | ||
+ | enable_page_level_ads: | ||
+ | }); | ||
+ | </ | ||
====== 文字の個数を数える(count) ====== | ====== 文字の個数を数える(count) ====== | ||
===== count ===== | ===== count ===== | ||
<code python> | <code python> | ||
- | count("文字列"[, 開始位置[, | + | count('文字列'[, 開始位置[, |
- | <//code> | + | </ |
<code python> | <code python> | ||
- | str = | + | str = ' |
+ | |||
+ | str.count(' | ||
+ | 3 | ||
+ | |||
+ | str.count(' | ||
+ | 0 | ||
</ | </ | ||