Python-保存在GNU Nano 2.2.4中编辑的文件 [英] Python - Saving a File being edited in GNU Nano 2.2.4
问题描述
我对Raspberry Pi进行编程和玩耍以及在YouTube上关注以下教程是非常陌生的.
I'm very new to programming and playing around with a Raspberry Pi and following tutorials on Youtube.
我已经在GNU Nano 2.2.6中打开了一个文件,例如:nano my_File.py
,并更改了一些数据.
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...
谢谢.
推荐答案
如果按Ctrl-X
退出,它将询问您是否要保存文件.
Ctrl-O
用于保存文件而不退出编辑器.
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
是有关组合键的帮助.
Ctrl-G
is for help on key combinations.
这篇关于Python-保存在GNU Nano 2.2.4中编辑的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!