哈希¶ 用于场景缓存的实用工具。 函数 get_hash_from_play_call(scene_object, camera_object, animations_list, current_mobjects_list)[来源]¶ 获取动画列表和mobjects列表并输出它们的哈希值。这是用于scene.play函数的。 Parameters: scene_object (场景) – 场景对象。 camera_object (相机) – 场景中使用的相机对象。 animations_list (Iterable[动画]) – 动画列表。 current_mobjects_list (Iterable[Mobject]) – mobjects的列表。 Returns: 由camera_object、animations_list和current_mobjects_list各自的哈希值通过_分隔符连接而成的字符串。 Return type: str get_json(obj)[来源]¶ 递归地将object序列化为JSON,使用CustomEncoder类。 Parameters: obj (dict) – 要展平的字典 Returns: 扁平化的对象 Return type: str