<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] ## .get\_rect()得到的矩形有哪些rect屬性? - 返回一個坐標數字: x, y, top, left, bottom, right, centerx, centery, width, height, w, h 其中:x = left, y = top, width = w, height = h; :-: ![](https://img.kancloud.cn/47/32/4732344db8eb3f9a65f8c49cf483bb85_425x262.png) - 返回一個(X,Y)元祖 size(width, height), topleft(左上), bottomleft(左下), topright(右上), bottomright(右下),midtop(中上), midleft(左中), midbottom(底中), midright(右中),center(中心點坐標) 舉個栗子,topleft就是左上角的 直接上圖,灰色矩形大小(900,450),中央藍色矩形(400,510),大家自己體會一下 :-: ![](https://img.kancloud.cn/70/95/70955ff72835f43be37d22f8a0127e64_678x413.png) ## .get\_rect()用法: 1. 圖片獲取rect對象: image = pygame.image.load(‘images/ship.bmp’) rect = image.get\_rect() 2. 屏幕獲取rect對象: screen =pygame.display.set\_mode((screen\_width, screen\_height)) screen\_rect = screen.get\_rect()
                  <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>

                              哎呀哎呀视频在线观看