int('1100',2)
12
int('1100',8)
576
int('1100',16)
4352
bin(170)
'0b10101010'
oct(170)
'0o252'
hex(170)
'0xaa'
import html
html.unescape('f')
'f'
当然也可以多个字符
import html
html.unescape('flag')
'flag'
import base64
a=b'233'
b=base64.b64encode(a)
b
b'MjMz'
import base64
a=b'233'
b=base64.b32encode(a)
b
b'GIZTG==='
import base64
a=b'233'
b=base64.b16encode(a)
b
b'323333'
import base64
a=b'MjMz'
b=base64.b64encode(a)
b
b'233'
import base64
a=b'GIZTG==='
b=base64.b32decode(a)
b
b'233'
import base64
a=b'323333'
b=base64.b16decode(a)
b
b'233'
import base58
a=b'233'
b=base58.b58encode(a)
b
b'HryY'
import base58
a=b'HryY'
b=base58.b58encode(a)
b
b'233'
原文:https://www.cnblogs.com/dawn-whisper/p/11545521.html