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

本站现有博文340篇,共被浏览1018358次

本站已经建立2718天!

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