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

本站现有博文309篇,共被浏览732714

本站已经建立2370天!

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