better name handling

This commit is contained in:
dkgitdev
2018-04-23 01:16:10 +07:00
committed by GitHub
parent 5818f369da
commit 98593da476

View File

@ -1,6 +1,7 @@
import sys
data = file(sys.argv[1], 'rb').readlines()
uid = sys.argv[1].replace('.txt','')
if sys.argv[1].endswith('.txt'):
uid = sys.argv[1][:-4]
def parity(x):
return ("{0:08b}".format(x).count('1') & 1)