Created
May 1, 2020 03:35
-
-
Save Celia-code/525412a27c4466d1033b6ac0d27efb8c 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
a = ['to', 'be', 'or', 'not', 'to', 'be'] | |
print(a.count('to')) | |
#打印出2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment