V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
sdlllllll
V2EX  ›  Python

怎样使 vscode 运行完一个 Python 程序后,想 spyder 那样保留内存中的变量方便下次调试时使用?

  •  
  •   sdlllllll · 2019-03-03 16:27:54 +08:00 · 2924 次点击
    这是一个创建于 1874 天前的主题,其中的信息可能已经有所发展或是发生改变。
    3 条回复    2019-03-05 10:36:29 +08:00
    111111111111
        1
    111111111111  
       2019-03-03 19:59:37 +08:00 via Android
    关键字:序列化和反序列化
    sdlllllll
        2
    sdlllllll  
    OP
       2019-03-04 14:56:28 +08:00
    @111111111111 我就是想要省去 pickle.load() 的时间。毕竟数据有点多
    mythmgn
        3
    mythmgn  
       2019-03-05 10:36:29 +08:00
    肯定要做序列化和反序列化. 如果数据量大, 考虑下有数据压缩的结构什么的. 比如 google 的 protobuf
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5314 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 08:50 · PVG 16:50 · LAX 01:50 · JFK 04:50
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.