base系列加密解密
import base64
?a = base64.b64encode(s)
?print a
base64.b32decode(s)
進(jìn)制轉(zhuǎn)換
var=input("請輸入進(jìn)制數(shù):")
b=bin(int(var,16))
print(b[2:])
import base64
?a = base64.b64encode(s)
?print a
base64.b32decode(s)
var=input("請輸入進(jìn)制數(shù):")
b=bin(int(var,16))
print(b[2:])