摘要: def encode(s): return ' '.join([bin(ord(c)).replace('0b', '') for c in s]) def decode(s): return ''.join([chr(i) for i in [int(b, 2) for b in s.split(' ')]]) 阅读全文
posted @ 2019-06-27 15:37 程序猿凯 阅读(7721) 评论(0) 推荐(0) 编辑