<kbd id="afajh"><form id="afajh"></form></kbd>
<strong id="afajh"><dl id="afajh"></dl></strong>
    <del id="afajh"><form id="afajh"></form></del>
        1. <th id="afajh"><progress id="afajh"></progress></th>
          <b id="afajh"><abbr id="afajh"></abbr></b>
          <th id="afajh"><progress id="afajh"></progress></th>

          Python代碼報錯看不懂?記住這20個報錯提示單詞輕松解決bug

          共 1354字,需瀏覽 3分鐘

           ·

          2021-11-05 16:32

          前言

          文的文字及圖片來源于網(wǎng)絡,僅供學習、交流使用,不具有任何商業(yè)用途,版權歸原作者所有,如有問題請及時聯(lián)系我們以作處理。



          1. syntaxerror: invalid syntax語法錯誤:無效語法

          1) syntax [?s?nt?ks] 語法、句法

          2) error [?er?r] 錯誤

          3) invalid [?n?v?l?d] 無效

          2. syntaxerror: unexpected EOF while parsing語法錯誤:多了無法解析的符號(檢查是否多了或少了括號)

          1) expected [?k?spekt?d] 預料、預期

          2) unexpected [??n?k?spekt?d] 想不到的

          3) parsing [?pɑ?z??] 句法分析

          3. syntaxerror: invalid character in identifier語法錯誤:有無效標識符(檢查中文符號)

          1) character [?k?r?kt?r] 性格

          2) identifier [a??dent?fa??] 標識符

          4. indexerror: list index out of range索引錯誤:列表超出索引范圍(檢查列表是否為空)

          1) list [l?st] 列表

          2) index [??ndeks] 索引

          3) error [?er?r] 錯誤

          4) range [re?nd?] 范圍

          5. typeerror: must be str, not int類型錯誤:數(shù)據(jù)不是正確的數(shù)據(jù)類型,比如字符串和數(shù)字直接拼接(檢查數(shù)據(jù)類型)

          1) type [ta?p] 類型

          6. indentationerror: expected an indented block縮進錯誤:檢查代碼的縮進是否正確

          1) indentation [??nden?te??n] 行首縮進

          2) expected [?k?spekt?d] 檢查

          3) indented [?n?dent?d] 縮進的

          4) block [bl?k] 塊

          7. valueerror: substring not found值錯誤:輸入的數(shù)據(jù)類型跟要求不符合

          1) substring 子串

          2) found [fa?nd] 建立

          8. nameerror: name 'a' is not defined未初始化對象,變量沒有被定義

          1) defined [d??fa?nd] 定義

          9. attributeerror: 'tuple' object has no attribute 'remove'屬性錯誤:該對象沒有這個屬性、方法(檢查數(shù)據(jù)類型)

          1) attribute [??tr?bju?t] 屬性

          2) tuple 元組、數(shù)組

          3) object [??bd??kt] 對象

          4) remove [r??mu?v] 移開、拿開、去掉

          *聲明:本文于網(wǎng)絡整理,版權歸原作者所有,如來源信息有誤或侵犯權益,請聯(lián)系我們刪除或授權事宜。


          瀏覽 79
          點贊
          評論
          收藏
          分享

          手機掃一掃分享

          分享
          舉報
          評論
          圖片
          表情
          推薦
          點贊
          評論
          收藏
          分享

          手機掃一掃分享

          分享
          舉報
          <kbd id="afajh"><form id="afajh"></form></kbd>
          <strong id="afajh"><dl id="afajh"></dl></strong>
            <del id="afajh"><form id="afajh"></form></del>
                1. <th id="afajh"><progress id="afajh"></progress></th>
                  <b id="afajh"><abbr id="afajh"></abbr></b>
                  <th id="afajh"><progress id="afajh"></progress></th>
                  鸥美无毛人妖家庭乱伦视频 | 性爱视频免费看 | 五月天色婷婷婷 | 国产色婷婷导航 | 色黄大色黄女片免费中国 |