Created
March 20, 2019 06:48
-
-
Save HoweChen/fa15f7e5ff012b3e35f89dd417c3c146 to your computer and use it in GitHub Desktop.
[统计boolean列表里正确的结果] #Python
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
test = [True,True,False,False] | |
print(sum(test)) # 2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment