>>> from box import Box
>>> movie_data = {"name": "Inception", "director": "Christopher Nolan"}
>>> movie = Box(movie_data)
>>> print(movie.name) # 输出: Inception
Inception
Inception, Christopher Nolan, 电影数据, Python, Box库
这篇文章介绍了如何使用Python的Box库来创建一个包含电影信息的字典,并通过Box对象访问电影名称。