Python-保存在GNU Nano 2.2.4中编辑的文件 [英] Python - Saving a File being edited in GNU Nano 2.2.4

查看:119
本文介绍了Python-保存在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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆