EADST

Python: Save and Load Pickle File

Python: Save and Load Pickle File.

import pickle

save_dict = {'id': 110}

with open('save_path_here.pickle', 'wb') as handle:
    pickle.dump(save_dict, handle, protocol=pickle.HIGHEST_PROTOCOL)

with open('save_path_here.pickle', 'rb') as handle:
    load_dict = pickle.load(handle)

print(save_dict== load_dict)

Reference

stackoverflow

相关标签
About Me
XD
Goals determine what you are going to be.
Category
标签云
Quantize Translation 论文速读 VSCode NLP Paper Tensor 云服务器 继承 BeautifulSoup Permission OpenAI scipy Augmentation FP16 CLAP Bert Disk FastAPI 阿里云 MD5 Hilton Pillow Firewall Numpy Plate Anaconda Streamlit Breakpoint COCO Food Google Paddle DeepStream Algorithm torchinfo Bipartite SAM diffusers QWEN Use PyCharm Hungarian uwsgi EXCEL Bitcoin NLTK Distillation 飞书 Bin AI mmap VPN Statistics Miniforge VGG-16 Datetime RAR JSON 图标 Jetson SVR llama.cpp git-lfs PIP FP64 Qwen2 财报 LLM 版权 News Pandas InvalidArgumentError CEIR Mixtral v0.dev git Knowledge Tiktoken 强化学习 Ptyhon Magnet PyTorch ModelScope Zip v2ray CAM Template Sklearn Python Jupyter Domain Tracking GoogLeNet Base64 Quantization Pickle Logo IndexTTS2 OCR Linux ResNet-50 Excel tqdm Transformers Vim Cloudreve TTS 签证 Docker Django logger 净利润 CTC 算法题 SPIE Pytorch 腾讯云 NameSilo UI FP8 Nginx Baidu Michelin hf Web C++ Github Random Shortcut Attention Conda transformers Interview 论文 HaggingFace Gemma Image2Text 多线程 Password API Diagram Agent GIT ONNX 域名 Ubuntu TensorRT SQL GGML Rebuttal TensorFlow Freesound ChatGPT Land BF16 Plotly Color PDF Llama LLAMA 公式 Proxy Hotel LeetCode Crawler 关于博主 Git LoRA Windows RGB GPT4 Heatmap Math GPTQ Dataset Card CC Qwen XGBoost Animate Search tar XML 报税 WebCrawler Markdown LaTeX TSV WAN OpenCV 图形思考法 UNIX printf 第一性原理 音频 Claude uWSGI 多进程 CSV Safetensors HuggingFace 证件照 DeepSeek YOLO 顶会 Website 递归学习法 Qwen2.5 Clash FP32 CUDA CV Input PDB 搞笑 icon Data Video Review FlashAttention BTC Vmess SQLite
站点统计

本站现有博文327篇,共被浏览831949

本站已经建立2536天!

热门文章
文章归档
回到顶部