<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>

                合規國際互聯網加速 OSASE為企業客戶提供高速穩定SD-WAN國際加速解決方案。 廣告
                [TOC] # 復數 復數,互聯網公司基本上沒有使用,使用場景在科學計算使用多些。 復數類型有兩種,分別是 `complex64` 和 `complex128` 復數有實部和虛部,complex64的實部和虛部為32位,complex128的實部和虛部為64位。 ```go var c1 complex64 c1 = 65 + 5i var c2 complex128 = 154 + 94i fmt.Println(c1) //(65+5i) fmt.Println(c2) //(154+94i) fmt.Printf("c2 is %G", c2) //c2 is (154+94i) ``` # 布爾值 布爾型數據只有 `true` 和 `false` 兩個值。 >[info] 注意:整型數字不能強轉換成布爾類型,例如0代表true,這個在golang語言是不支持的 應用場景如下: 1. 判斷語句 2. 循環語句 3. ... ```go var b1 bool = true fmt.Printf("b1 is %t, b1 type is %T\n", b1, b1) //b1 is true, b1 type is bool var b2 bool = 3 < 2 fmt.Printf("b2 is %t, b2 type is %T\n", b2, b2) //b2 is false, b2 type is bool b3 := 3 > 2 fmt.Printf("b3 is %t, b3 type is %T\n", b3, b3) //b3 is true, b3 type is bool ``` # Printf占位符 總結這里出現的占位符 | 占位符 | 描述 | | :-: | :-: | | %G | 復數占位符 | | %t | 布爾值占位符 |
                  <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>

                              哎呀哎呀视频在线观看