#10进制转换成36进制
def base36_encode(number):
num_str = '0123456789abcdefghijklmnopqrstuvwxyz'
if number == 0:
return '0'
base36 = []
while number != 0:
number, i = divmod(number, 36) # 返回 number// 36 , number%36
base36.append(num_str[i])
return ''.join(reversed(base36))
#36进制转10进制
def base10encode(fid):
pwd = 3154131
out = int(fid, 36) - pwd
return out