我正在尝试腌制一个 pygame.event.Event 对象:
eventObj= pygame.event.get()[0]
data= pickle.dumps(eventObj)
但我收到此错误:
_pickle.PicklingError: Can't pickle <class 'Event'>: attribute lookup builtins.Event failed
我正在尝试腌制一个 pygame.event.Event 对象:
eventObj= pygame.event.get()[0]
data= pickle.dumps(eventObj)
但我收到此错误:
_pickle.PicklingError: Can't pickle <class 'Event'>: attribute lookup builtins.Event failed