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

本站现有博文319篇,共被浏览751727

本站已经建立2408天!

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