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

本站现有博文332篇,共被浏览875333

本站已经建立2583天!

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