<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代碼報(bào)錯(cuò)看不懂?記住這20個(gè)報(bào)錯(cuò)提示單詞輕松解決bug

          共 1248字,需瀏覽 3分鐘

           ·

          2022-10-15 12:05

          前言

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



          1. syntaxerror: invalid syntax語(yǔ)法錯(cuò)誤:無(wú)效語(yǔ)法

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

          2) error [?er?r] 錯(cuò)誤

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

          2. syntaxerror: unexpected EOF while parsing語(yǔ)法錯(cuò)誤:多了無(wú)法解析的符號(hào)(檢查是否多了或少了括號(hào))

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

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

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

          3. syntaxerror: invalid character in identifier語(yǔ)法錯(cuò)誤:有無(wú)效標(biāo)識(shí)符(檢查中文符號(hào))

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

          2) identifier [a??dent?fa??] 標(biāo)識(shí)符

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

          1) list [l?st] 列表

          2) index [??ndeks] 索引

          3) error [?er?r] 錯(cuò)誤

          4) range [re?nd?] 范圍

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

          1) type [ta?p] 類(lèi)型

          6. indentationerror: expected an indented block縮進(jìn)錯(cuò)誤:檢查代碼的縮進(jìn)是否正確

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

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

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

          4) block [bl?k] 塊

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

          1) substring 子串

          2) found [fa?nd] 建立

          8. nameerror: name 'a' is not defined未初始化對(duì)象,變量沒(méi)有被定義

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

          9. attributeerror: 'tuple' object has no attribute 'remove'屬性錯(cuò)誤:該對(duì)象沒(méi)有這個(gè)屬性、方法(檢查數(shù)據(jù)類(lèi)型)

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

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

          3) object [??bd??kt] 對(duì)象

          4) remove [r??mu?v] 移開(kāi)、拿開(kāi)、去掉

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

          覺(jué)得不錯(cuò),點(diǎn)個(gè)“在看”然后轉(zhuǎn)發(fā)出去



          瀏覽 80
          點(diǎn)贊
          評(píng)論
          收藏
          分享

          手機(jī)掃一掃分享

          分享
          舉報(bào)
          評(píng)論
          圖片
          表情
          推薦
          點(diǎn)贊
          評(píng)論
          收藏
          分享

          手機(jī)掃一掃分享

          分享
          舉報(bào)
          <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>
                  视频一区一区 | 亚洲一级二级三级 | 五月婷婷综合在线 | 五月婷婷久久久 | 精品无码一区二区三区爱奴 |