echo '{"name":"chen","age":"11"}' |python -m json.tool

 

如果是文件,用cat打印,如{"name":"chen","age":"11"}存在一个文件test中

用cat test |python -m json.tool

相关文章:

  • 2022-12-23
  • 2021-12-28
  • 2021-10-19
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-05
  • 2021-12-20
猜你喜欢
  • 2022-01-25
  • 2021-08-24
  • 2021-12-28
  • 2021-11-29
相关资源
相似解决方案