技術問答
技術文章
iT 徵才
Tag
聊天室
2024 鐵人賽
登入/註冊
問答
文章
Tag
邦友
鐵人賽
搜尋
2021 iThome 鐵人賽
DAY
19
0
Modern Web
基礎python,讓你學點東西
系列 第
19
篇
[Day19]-檔案讀取與寫入
13th鐵人賽
yyann
團隊
挨踢SHE
2021-10-01 14:08:27
879 瀏覽
分享至
寫入檔案
寫入空文件內
檔案很大時分段寫入
Shutil模組
檔案或目錄的複製、移動、更改和刪除,使用時要先import shutil
檔案複製copy()與目錄複製copytree()
目錄跟檔案的移動move()
目錄跟檔案的更改move()
安全刪除檔案與資料夾send2trash() 但使用前要先下載外部模組
pip install send2trash
檔案壓縮與解壓縮zipfile
壓縮資料夾
讀取zip檔案
小實作—加密檔案
留言
追蹤
檢舉
上一篇
[Day18]-檔案讀取
下一篇
[Day20]-程序除錯與異常處理
系列文
基礎python,讓你學點東西
共
30
篇
目錄
RSS系列文
訂閱系列文
7
人訂閱
26
[Day26]-數據圖表的設計
27
[Day27]-數據圖表的設計2
28
[Day28]-網路爬蟲
29
[Day29]-使用python處理pdf檔案
30
[Day30]-30天完賽的心得~~~
完整目錄
直播研討會
{{ item.subject }}
{{ item.channelVendor }}
{{ item.webinarstarted }}
|
{{ formatDate(item.duration) }}
直播中
立即報名
尚未有邦友留言
立即登入留言
iThome鐵人賽
參賽組數
1057
組
團體組數
40
組
累計文章數
21713
篇
最後報名日
9/15
看影片追技術
看更多
{{ item.subject }}
{{ item.channelVendor }}
|
{{ formatDate(item.duration) }}
直播中
熱門tag
看更多
15th鐵人賽
16th鐵人賽
13th鐵人賽
14th鐵人賽
12th鐵人賽
11th鐵人賽
鐵人賽
2019鐵人賽
javascript
2018鐵人賽
python
2017鐵人賽
windows
php
c#
windows server
linux
css
react
vue.js
熱門問題
程式開發人員的電腦軟體是否受MIS管理
如果想在第九題和第十題之間做出loading加載畫面,請問要怎麼限制「加載畫面」在第九題和第十題之間才會跳出?
玩玩SQL~查詢當月排班各區間的班別~SQL改善完成!
VS Code 啟動好慢
交換器設備
Fortigate 防火牆政策設定問題
網域內所有裝置密碼強度變更
apple script 語法問題請教
請教不同主機的斷線檢測方式
Oracle正規表達式問題
熱門回答
交換器設備
程式開發人員的電腦軟體是否受MIS管理
玩玩SQL~查詢當月排班各區間的班別~SQL改善完成!
Fortigate 防火牆政策設定問題
Win11 耳機一邊沒有聲音
熱門文章
慘痛的資遣-萬惡的軟體接案公司
day26- 設定Google Play帳戶
Day28 從象棋比賽作弊事件探討資料傳輸與資料結構
Day26 Vue.js 動效分類實戰 (17) 雙十特輯 - 超燃國慶狂歡,打造專屬於你的沈浸式煙火秀
【Day 25】經典 Flappy Birds 遊戲實作(三)水管隨機生成和場景移動
IT邦幫忙
×
標記使用者
輸入對方的帳號或暱稱
Loading
找不到結果。
標記
{{ result.label }}
{{ result.account }}