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

本站现有博文323篇,共被浏览800718

本站已经建立2499天!

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