python 一些有用的功能函数(持续更新)

  1. 打印二进制
def bin_encode(s):
    return ' '.join([bin(ord(c)).replace('0b', '').rjust(8, '0') for c in s])

猜你喜欢

转载自blog.csdn.net/u014134138/article/details/78353929