We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d8f004 commit c48b3d2Copy full SHA for c48b3d2
tool/binary_conversion/binary.go
@@ -7,7 +7,11 @@ func main() {
7
fmt.Printf("%064b\n", switchs)
8
switchs = 1<<63 | 1<<2 | 1<<3 //直接替换
9
10
- switchs += 1<<4 | 1<<5 | 1<<6 //修改某一些的东西
+ switchs = 1<<62 | 1<<61 | 1<<60 //修改某一些的东西
11
12
- fmt.Println(1 << 10 & switchs) //判断第二位是不是0
+ fmt.Println(switchs)
13
+ fmt.Printf("%064b\n", 1 << 62)
14
+ fmt.Printf("%064b\n", switchs)
15
+ fmt.Println(1 << 2 & 8070450532247928832) //判断第二位是不是0
16
+ fmt.Println(1 << 62 & 8070450532247928832) //判断第二位是不是0
17
}
0 commit comments