0
我想醃一pygame.event.Event對象pygame的事件對象:Python的酸洗錯誤嘗試醃製
eventObj= pygame.event.get()[0]
data= pickle.dumps(eventObj)
,但我得到這個錯誤:
_pickle.PicklingError: Can't pickle <class 'Event'>: attribute lookup builtins.Event failed
'type(enventObj)'返回什麼? – mechmind
'type(eventObj)'返回''因爲它應該 –