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

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

本站已经建立2590天!

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