在python中将01字符串转换为二进制 [code] bytes([int(x) for x in a]) [/code] 123 [code]bytes([int(x) for x in a])[/code]