lhl
首页
python
leetcode
产品思想
软件测试
博客 (opens new window)
github (opens new window)
首页
python
leetcode
产品思想
软件测试
博客 (opens new window)
github (opens new window)
  • python

    • Python 基础

      • 数据结构
      • 函数
      • 异常
      • 控制语句
      • 运算符
      • 模块
      • 输入输出
      • json
        • Json库
    • Python 数据库

    • 面向对象

    • Python Web

    • Python 进阶

  • leetcode

  • 软件测试

  • Git

  • linux

  • 产品

  • MySql

  • docker

  • python
  • 基础
2023-07-30
目录

Json库

# Json库

# 序列化和反序列化

反序列化,不带s是文件流用的

loads

Deserialize s (a str, bytes or bytearray instance containing a JSON document) to a Python object.

load

Deserialize fp (a .read()-supporting file-like object containing a JSON document) to a Python object.

序列化,不带s是文件流用的

dumps

Serialize obj to a JSON formatted str.

dump

Serialize obj as a JSON formatted stream to fp (a .write()-supporting file-like object).

输入输出
Python&Mysql

← 输入输出 Python&Mysql→

最近更新
01
lhl learn notes
02
filter
06-09
03
decorator
06-09
更多文章>
Theme by Vdoing
  • 跟随系统
  • 浅色模式
  • 深色模式
  • 阅读模式