Python中文亂碼問題總結匯總

讀寫文件 with open('maoyan_result.txt', 'a', encoding='utf-8') as f: f.write(json.dumps(content, ensure_ascii=False) + '\n') f.close() f= open('news6', 'w', encoding='utf-8-sig', newline='
相關文章
相關標籤/搜索