... 接著使用json.dumps 將dict 字典的資料轉換為JSON 格式,最後使用write 將資料寫入( 用法上與dump 不太相同,dump 轉換資料並寫入檔案,dumps 只是轉換資料)。
確定! 回上一頁