<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] byte 就是字節的意思,一個字節就是8個二進制位。uint8,無符號整型,占8位。正好也是2的8次方。所以 byte 和 uint8 類型本質上沒有區別,他表示的是 ASCII 表中的一個字符。 ```go // byte類型 var b1 byte b1 = 'A' fmt.Printf("b1 type is: %T\n", b1) fmt.Printf("%c\n", b1) // ASCII碼表對應的字符 fmt.Printf("%d\n", b1) // ASCII數字 fmt.Println(b1) // ASCII數字 // uint8類型 var b2 uint8 b2 = 65 fmt.Printf("b2 type is: %T\n", b2) fmt.Printf("%c\n", b2) // ASCII碼表對應的字符 fmt.Printf("%d\n", b2) // ASCII數字 fmt.Println(b2) // ASCII數字 var b3 rune b3 = '曾' // rune,占用4個字節,共32位比特位。所以它和int32本質上也沒有區別。 // 它表示的是一個Unicode字符 fmt.Printf("b3: %v, b3 type is: %T\n", b3, b3) // 運行結果: // b1 type is: uint8 // A // 65 // 65 // b2 type is: uint8 // A // 65 // 65 // b3: 26366, b3 type is: int32 ``` ## rune 與 byte 區別 1. byte對應的是uint8,一個字節,存儲ASCII表里面的字符 2. rune對應的是int32,四個字節,存儲Unicode碼表里面的字符
                  <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>

                              哎呀哎呀视频在线观看