09文件的基本操作
r:只讀 read
w: 只寫 write
a : 追加寫 append
#相對路徑:相對于當前程序所在的文件夾
#絕對路徑: c:/work/123.txt
文件操作回顧
# 1,ascii 8bit 1byte
2,gbk 16bit 2byte
3,Unicode 萬國碼 32bit 4byte
4,utf-8
英文:8bit, 1byte
歐洲:16bit,2byte
中文: 24bit,3byte
總結
r:只讀 read
w: 只寫 write
a : 追加寫 append
#相對路徑:相對于當前程序所在的文件夾
#絕對路徑: c:/work/123.txt
文件操作回顧
# 1,ascii 8bit 1byte
2,gbk 16bit 2byte
3,Unicode 萬國碼 32bit 4byte
4,utf-8
英文:8bit, 1byte
歐洲:16bit,2byte
中文: 24bit,3byte