Skip to content

Commit e9d9f10

Browse files
author
Liu
committed
bugfix
1 parent 7773ce9 commit e9d9f10

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

practice/身份证识别/身份证识别_v.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,10 @@ def id_check(id):
4848
break
4949
result = (12 - (sum % 11)) % 11
5050
if result == 10:
51-
crc1 = "X"
51+
crc = "X"
5252
else:
53-
crc1 = result
54-
if id[17] == crc1:
53+
crc = result
54+
if int(id[17]) == crc:
5555
res = True
5656
else:
5757
res = False

0 commit comments

Comments
 (0)