Recover overwritten .py file overwitten using Spyder

依然范特西╮ 提交于 2019-12-11 15:39:13

问题


I know I should have used version control but I have accidentally overwritten a script (.py file) by saving another script with exactly the same name while using Spyder.

Is there any way at all this can be recovered?


回答1:


Once the file has been compiled to a pyc it is lost. If you still have the old pyc file you may be able to decompile it:

Is it possible to decompile a compiled .pyc file into a .py file?



来源:https://stackoverflow.com/questions/54675041/recover-overwritten-py-file-overwitten-using-spyder

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!