Spyder終端機:

路徑:
C:\ProgramData\Anaconda
(\\改為\)
Windows:
開始>設定>
系統>關於>
進階系統設定>
環境變數>
Path新增上面查到的路徑(\\改為\)

Windows11:
開始>設定>
系統>系統資訊>
進階系統設定>
環境變數>
CMD mode底下執行 set PATH=
可以暫時設定路徑(切換舊版python)

set PATH 照理說應該是不能用,
如果能用,應該是剛好
用的模組的 PATH 與
PYTHONPATH 有重疊到的關係
字串前方加一個 r 是一個特殊的字串前輟旗標,代表要求直譯器以 raw string 的方式解析目前的字串內容,換句話說包括跳脫字元等的解析都會被忽略。因此以下兩個字串,是等價的喔:
strr1 = “\\n”
#Python的字串中輸入\\,輸出\,
#輸入%%,輸出%
strr2 = r”\n”

\220 的部份,簡單來說在 str 中,這個是跳脫字元無誤,
220 是八進位,換算成 16 進位的話是 \x90
\x90 目前在 ASCII 表格是空的
有無加r旗標:

跳脫字元:

推薦hahow線上學習python: https://igrape.net/30afN





![Python 進階實戰:深入 Word 核心,挖出那一坨 BLOB (含自省 Debug 技巧, BLOB= Binary Large Object) ; part = doc.part.rels[rid].target_part ; return part.blob if “ImagePart” in type(part).__name__ else None Python 進階實戰:深入 Word 核心,挖出那一坨 BLOB (含自省 Debug 技巧, BLOB= Binary Large Object) ; part = doc.part.rels[rid].target_part ; return part.blob if “ImagePart” in type(part).__name__ else None](https://i0.wp.com/savingking.com.tw/wp-content/uploads/2026/01/20260126111046_0_cd8751.png?quality=90&zoom=2&ssl=1&resize=350%2C233)
![Python: pandas.DataFrame如何移除所有空白列?if df_raw.iloc[r,0] is np.nan: nanLst.append(r) ; df_drop0 = df_raw.drop(nanLst,axis=0) ; pandas.isna() ;df_drop0 = df_raw.drop(nanLst,axis=0).reset_index(drop=True) Python: pandas.DataFrame如何移除所有空白列?if df_raw.iloc[r,0] is np.nan: nanLst.append(r) ; df_drop0 = df_raw.drop(nanLst,axis=0) ; pandas.isna() ;df_drop0 = df_raw.drop(nanLst,axis=0).reset_index(drop=True)](https://i2.wp.com/savingking.com.tw/wp-content/uploads/2022/12/20221206144233_67.png?quality=90&zoom=2&ssl=1&resize=350%2C233)



近期留言