直接上代码:name = "你好,中国人"byteName = bytes(name.encode("utf-8"))print(byteName)for b in byteName : print(bin(b),end=" ")