Is there a way to view cPickle or Pickle file contents without loading Python in Windows?

后端 未结 3 1835
星月不相逢
星月不相逢 2020-12-29 03:40

I use cPickle to save data sets from each run of a program. Since I sometimes need to see the outline of the data without running the code, I would like an easy way to quick

3条回答
  •  生来不讨喜
    2020-12-29 03:50

    You can also make an alias on your terminal, for example :

    alias pvw="python -mpickle "
    

    in my case :

    pvw obj.dat                                   
             ID    A_ID   B_ID   PAST_ID
        0    20    1008   4771     425  
        1    20    2000   4771     425  
        2    20    2015   4771     425
    

提交回复
热议问题