[清理]删除几处打印逻辑
This commit is contained in:
parent
f1efd5a2f2
commit
d706a42b1b
|
@ -176,9 +176,9 @@ func ToValLeftMsb(v []byte) uint16 {
|
|||
}
|
||||
val := uint16(0)
|
||||
l := len(v)
|
||||
elems := make([]string, l)
|
||||
//elems := make([]string, l)
|
||||
for i := 0; i < l; i++ {
|
||||
elems[i] = fmt.Sprintf("%d", v[i])
|
||||
//elems[i] = fmt.Sprintf("%d", v[i])
|
||||
if v[i] == 1 {
|
||||
val += (1 << (l - i - 1))
|
||||
}
|
||||
|
|
|
@ -14,16 +14,16 @@ func revertFirst10Bits(b []byte) []byte {
|
|||
w10s := make([]uint16, 83)
|
||||
for i := 0; i < 83; i++ {
|
||||
w10s[i] = uint16(ToValLeftMsb(b[i*10 : i*10+10]))
|
||||
// 打印输出
|
||||
for j := 0; j < 10; j++ {
|
||||
fmt.Printf("%01b", b[i*10+j])
|
||||
}
|
||||
print(" ")
|
||||
if i != 0 && i%10 == 9 {
|
||||
println()
|
||||
}
|
||||
//// 打印输出
|
||||
//for j := 0; j < 10; j++ {
|
||||
// fmt.Printf("%01b", b[i*10+j])
|
||||
//}
|
||||
//print(" ")
|
||||
//if i != 0 && i%10 == 9 {
|
||||
// println()
|
||||
//}
|
||||
}
|
||||
println()
|
||||
//println()
|
||||
// 将除了第一个10位字整数求和
|
||||
sum := uint64(0)
|
||||
for i := 1; i < 83; i++ {
|
||||
|
|
Loading…
Reference in New Issue