[問題] shelve模組創一個檔案text.dat會變成怪檔
import shelve
s = shelve.open('test.dat')
結果電腦給我產生 test.dat.dat檔
為什麼不是產生 test.dat檔
然後照書上輸入
s['x'] = ['a', 'b', 'c']
去查看這個test.dat.dat檔內容有一堆?
--> ? ]??a? b? c .
感覺跟我想都不太一樣
怎麼會降子咧
再請好心的大大教一下
謝謝~~
--
希望永遠不要有戰爭
https://i.imgur.com/95iVB80.png
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 122.116.228.113 (臺灣)
※ 文章網址: https://www.ptt.cc/bbs/Python/M.1649603875.A.BCC.html
→
04/10 23:37,
2年前
, 1F
04/10 23:37, 1F
→
04/10 23:37,
2年前
, 2F
04/10 23:37, 2F
→
04/10 23:38,
2年前
, 3F
04/10 23:38, 3F
→
04/11 09:49,
2年前
, 4F
04/11 09:49, 4F