Python - Saving a File being edited in GNU Nano 2.2.4 [closed]

我与影子孤独终老i 提交于 2019-12-04 15:26:05

问题


I'm very new to programming and playing around with a Raspberry Pi and following tutorials on Youtube.

I have opened a file in GNU Nano 2.2.6 e.g: nano my_File.py and changed some of the data.

I'm struggling on how to overwrite the file (or save it) because when i run it in a new window it uses the original data...

Thanks.


回答1:


If you press Ctrl-X, for exit, it will ask you whether you want to save the file. Ctrl-O is for saving file without exiting the editor.

Ctrl-G is for help on key combinations.



来源:https://stackoverflow.com/questions/14057924/python-saving-a-file-being-edited-in-gnu-nano-2-2-4

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