python 库 box 解析json yaml

>>> from box import Box
>>> movie_data = {"name": "Inception", "director": "Christopher Nolan"}
>>> movie = Box(movie_data)
>>> print(movie.name)  # 输出: Inception
Inception

作者:spike

分类: Python

创作时间:2024-05-14

更新时间:2024-05-14

联系方式放在中括号之中例如[[email protected]],回复评论在开头加上标号例如:#1