From f0332aa4f4125d0d62db52535c3de863c2462dd8 Mon Sep 17 00:00:00 2001 From: Jody Zhou <56443135+JodyZ0203@users.noreply.github.com> Date: Wed, 11 Nov 2020 22:53:37 -0500 Subject: [PATCH] =?UTF-8?q?Update=20=E5=B8=B8=E7=94=A8=E7=9A=84=E4=BD=8D?= =?UTF-8?q?=E6=93=8D=E4=BD=9C.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...\250\347\232\204\344\275\215\346\223\215\344\275\234.md" | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git "a/\347\256\227\346\263\225\346\200\235\347\273\264\347\263\273\345\210\227/\345\270\270\347\224\250\347\232\204\344\275\215\346\223\215\344\275\234.md" "b/\347\256\227\346\263\225\346\200\235\347\273\264\347\263\273\345\210\227/\345\270\270\347\224\250\347\232\204\344\275\215\346\223\215\344\275\234.md" index f056558..ebcde78 100644 --- "a/\347\256\227\346\263\225\346\200\235\347\273\264\347\263\273\345\210\227/\345\270\270\347\224\250\347\232\204\344\275\215\346\223\215\344\275\234.md" +++ "b/\347\256\227\346\263\225\346\200\235\347\273\264\347\263\273\345\210\227/\345\270\270\347\224\250\347\232\204\344\275\215\346\223\215\344\275\234.md" @@ -176,8 +176,7 @@ http://graphics.stanford.edu/~seander/bithacks.html#ReverseParallel 由[JodyZ0203](https://github.com/JodyZ0203)提供 191. 位1的个数 Python3 解法代码: -'''Python - +```Python3 class Solution: def hammingWeight(self, n: int) -> int: @@ -194,5 +193,4 @@ class Solution: # 当二进制串全消除完之后,返回1出现的总数量 return count - -''' + ``` -- GitLab