Igo*_*ato 10
清洁版:
>>> test_string = '1101100110000110110110011000001011011000101001111101100010101000'
>>> print ('%x' % int(test_string, 2)).decode('hex').decode('utf-8')
????
Run Code Online (Sandbox Code Playgroud)
反向(来自@Robᵩ的评论):
>>> '{:b}'.format(int(u'????'.encode('utf-8').encode('hex'), 16))
1: '1101100110000110110110011000001011011000101001111101100010101000'
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
20763 次 |
| 最近记录: |