How can I define the format that will be output (string, integer etc) to pickle file?
问题 I am working with a repository where there is a pickle file that shows the names of the videos in the dataset and the number of frames of each video. (dp0 S'v_Lunges_g07_c01.avi' p1 I248 sS'v_Haircut_g18_c04.avi' p2 I263 sS'v_Bowling_g21_c03.avi' p3 I179 sS'v_FrontCrawl_g04_c04.avi' p4 I328 sS'v_Biking_g15_c05.avi' p5 I239 sS'v_Swing_g08_c03.avi' I289 s. With some help from StackOverflow I learnt that I can get a similar file (text editor readable) using pickle.dump(obj, protocol=0) However,