Created
April 24, 2020 12:35
-
-
Save ashitaka1963/a06f37e2c9e13277b9f56520ae5699a2 to your computer and use it in GitHub Desktop.
特定文字列の数をカウント
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
s = "ZABCDBABCQ" | |
cnt = s.count("ABC") | |
print(cnt) # 2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment