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
asfdasf32
V2EX  ›  Python

Python 下对两个 json 格式文件对比有什么方法吗?

  •  
  •   asfdasf32 · 2018-04-25 11:18:36 +08:00 · 3119 次点击
    这是一个创建于 2185 天前的主题,其中的信息可能已经有所发展或是发生改变。

    比如我扫描端口上一次扫到 80,这次没有扫描到,怎么对比 json 文件从而找出区别点

    4 条回复    2018-04-26 14:14:34 +08:00
    MeteorCat
        1
    MeteorCat  
       2018-04-25 12:47:02 +08:00
    不限制 python ?`diff file1 fies2` 这样可以吗?
    Droi
        2
    Droi  
       2018-04-25 17:07:31 +08:00
    把 json 转成 python 的 dict
    PyTx
        3
    PyTx  
       2018-04-25 19:58:48 +08:00
    jennifertxwoodma
        4
    jennifertxwoodma  
       2018-04-26 14:14:34 +08:00
    可以之间用 diff
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5640 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 01:47 · PVG 09:47 · LAX 18:47 · JFK 21:47
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.