Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # 假设省份证号为:653-129-1987-0526-7513
- temp = 6*7 + 5*9 + 3*10 + 1*5 + 2*8 + 9*4 + 1*2 + 9*1 + 8*6 + 7*3 + 0*7 + 5*9 + 2*10 + 6*5 + 7*8 + 5*4 + 1*2
- print 'temp = ',temp
- y = temp % 11
- list1 = [1,0,'x',9,8,7,6,5,4,3,2]
- print 'last = ', list1[y]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement