• <i id='uCG8A'><tr id='uCG8A'><dt id='uCG8A'><q id='uCG8A'><span id='uCG8A'><b id='uCG8A'><form id='uCG8A'><ins id='uCG8A'></ins><ul id='uCG8A'></ul><sub id='uCG8A'></sub></form><legend id='uCG8A'></legend><bdo id='uCG8A'><pre id='uCG8A'><center id='uCG8A'></center></pre></bdo></b><th id='uCG8A'></th></span></q></dt></tr></i><div id='uCG8A'><tfoot id='uCG8A'></tfoot><dl id='uCG8A'><fieldset id='uCG8A'></fieldset></dl></div>

    1. <tfoot id='uCG8A'></tfoot>

          <bdo id='uCG8A'></bdo><ul id='uCG8A'></ul>
        <legend id='uCG8A'><style id='uCG8A'><dir id='uCG8A'><q id='uCG8A'></q></dir></style></legend>
      1. <small id='uCG8A'></small><noframes id='uCG8A'>

      2. 如何保存python IDLE的自定义首选项?

        How to save custom preferences of python#39;s IDLE?(如何保存python IDLE的自定义首选项?)

          <bdo id='Tugce'></bdo><ul id='Tugce'></ul>

            <tfoot id='Tugce'></tfoot>
            1. <small id='Tugce'></small><noframes id='Tugce'>

                <i id='Tugce'><tr id='Tugce'><dt id='Tugce'><q id='Tugce'><span id='Tugce'><b id='Tugce'><form id='Tugce'><ins id='Tugce'></ins><ul id='Tugce'></ul><sub id='Tugce'></sub></form><legend id='Tugce'></legend><bdo id='Tugce'><pre id='Tugce'><center id='Tugce'></center></pre></bdo></b><th id='Tugce'></th></span></q></dt></tr></i><div id='Tugce'><tfoot id='Tugce'></tfoot><dl id='Tugce'><fieldset id='Tugce'></fieldset></dl></div>
              1. <legend id='Tugce'><style id='Tugce'><dir id='Tugce'><q id='Tugce'></q></dir></style></legend>
                    <tbody id='Tugce'></tbody>
                  本文介绍了如何保存python IDLE的自定义首选项?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我在不同位置有几台计算机,虽然我没有在 IDLE 中编码,但它始终在后台运行,用于小型测试、调试和研究任务.我在家里配置了 IDLE 自定义高亮、键集等,将我的设置保存到外部文件中,并将这些设置安装到我正在使用的任何机器上会很舒服.

                  I have several computers at different locations, and although I'm not coding in IDLE, it is always running in the background, for small testing, debugging and researching tasks. I configured IDLE custom highlighting, key set, etc. at home, and it would be pretty comfy to save my settings into an external file, and install these settings onto any machines I'm working on.

                  所以我的问题是:有没有办法做到这一点?

                  So my question: is there a way to do that?

                  或者,如果有人知道 IDLE 将这些数据存储在哪里,那就太好了——也许我可以从那里复制文件..

                  Or it would be also nice, if anyone knows where IDLE stores these datas — probably I can copy the file(s) from there..

                  提前致谢!

                  推荐答案

                  IDLE 将其首选项保存在 $HOME/.idlerc 目录下的多个文件中,创建文件(例如,config-main.cfg) 根据需要.至少重要的是简单的文本文件,因此您应该能够将这些文件从一台机器上的主目录复制到另一台机器上.有一些潜在的问题需要注意:

                  IDLE saves its preferences in several files in the $HOME/.idlerc directory, creating the files (for example, config-main.cfg) as needed. The important ones, at least, are simple text files so you should be able to copy those files from your home directory on one machine to another. There are a few potential gotcha's to watch out for:

                  • 将文件复制到另一个主目录时,请确保没有 IDLE实例正在运行.

                  • When you copy the files to another home directory, make sure no IDLE instances are running.

                  请注意,目前所有版本的 IDLE(使用 Python 2.7、3.2、3.3 等)共享相同的 .idlerc 目录和文件.我目前不知道有任何重大冲突,可能是最近的冲突文件名包含需要 Unicode 的非 ASCII 字符的文件表示:这可能会导致 IDLE 2.x 和 3.x 之间的共享问题.

                  Be aware that currently all versions of IDLE (with Python 2.7, 3.2, 3.3, etc) share the same .idlerc directory and files. I'm not aware of any major conflicts at this point other than possibly recent files with file names with non-ASCII characters that require Unicode representation: that could cause problems sharing between IDLE 2.x and 3.x.

                  如果您尝试共享文件,另一个问题可能是行尾在 Windows 和非 Windows 系统之间.

                  Another issue might be line endings if you attempt to share files between Windows and non-Windows systems.

                  这篇关于如何保存python IDLE的自定义首选项?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Running .jl file from R or Python(从 R 或 Python 运行 .jl 文件)
                  Running Julia .jl file in python(在 python 中运行 Julia .jl 文件)
                  Using PIP in a Azure WebApp(在 Azure WebApp 中使用 PIP)
                  How to run python3.7 based flask web api on azure(如何在 azure 上运行基于 python3.7 的烧瓶 web api)
                  Azure Python Web App Internal Server Error(Azure Python Web 应用程序内部服务器错误)
                  Run python dlib library on azure app service(在 azure app 服务上运行 python dlib 库)

                    1. <legend id='tmhYS'><style id='tmhYS'><dir id='tmhYS'><q id='tmhYS'></q></dir></style></legend>
                        <tfoot id='tmhYS'></tfoot>
                        <i id='tmhYS'><tr id='tmhYS'><dt id='tmhYS'><q id='tmhYS'><span id='tmhYS'><b id='tmhYS'><form id='tmhYS'><ins id='tmhYS'></ins><ul id='tmhYS'></ul><sub id='tmhYS'></sub></form><legend id='tmhYS'></legend><bdo id='tmhYS'><pre id='tmhYS'><center id='tmhYS'></center></pre></bdo></b><th id='tmhYS'></th></span></q></dt></tr></i><div id='tmhYS'><tfoot id='tmhYS'></tfoot><dl id='tmhYS'><fieldset id='tmhYS'></fieldset></dl></div>

                          • <bdo id='tmhYS'></bdo><ul id='tmhYS'></ul>
                              <tbody id='tmhYS'></tbody>

                            <small id='tmhYS'></small><noframes id='tmhYS'>