<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ThinkChat2.0新版上線,更智能更精彩,支持會話、畫圖、視頻、閱讀、搜索等,送10W Token,即刻開啟你的AI之旅 廣告
                [TOC] # 位運算符 >[info] 位運算符對整數在內存中的 **二進制** 位進行操作。 | 運算符 | 描述 | | :-: | :-: | | & | 參與運算的兩數各對應的二進位相與(兩位均為1才為1)| | \| | 參與運算的兩數各對應的二進位相或(兩位有一個為1就為1) | | ^ | 參與運算的兩數各對應的二進位相異或,當兩對應的二進位相異時,結果為1 (兩位不一樣則為1) | | << | 左移n位就是乘以2的n次方("a << b"是把a的各二進位全部左移b位,高位丟棄,低位補0) | | >> | 右移n位就是除以2的n次方("a >> b"是把a的各二進位全部右移b位) ```go a := 6 // 110 b := 5 // 101 fmt.Printf("a: %b, b: %b\n", a, b) fmt.Println(a & b) // 100 = 2^2 fmt.Println(a | b) // 111 = 2^2 + 2^1 + 2^0 fmt.Println(a ^ b) // 011 = 2^1 + 2^0 fmt.Println(a << b) // 11000000 = 2^7 + 2^6 fmt.Println(a >> b) // 0000 // 運行結果: // a: 110, b: 101 // 4 // 7 // 3 // 192 // 0 ```
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看