Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
你如何连接位串。我的意思是位串,因为我不知道字节数是 8 的倍数。
A = <<3:2>> B = <<1:1>> C = <<15:4>> Solution should A|B|C should be <<127:7>>
谢谢
使用/bitstring和所有以前的值构造二进制文件。这是一个在 erlang shell 中运行的示例:
1> A = <<3:2>>. <<3:2>> 2> B = <<1:1>>. <<1:1>> 3> C = <<15:4>>. <<15:4>> 4> D = <<A/bitstring, B/bitstring, C/bitstring>>. <<127:7>>