问题描述
1)为什么不在他们的脚本中使用python / idle使用编号的行,比如
basic?如何在没有它们的情况下跟踪大批量的代码?
2)在IDLE中,如何保存程序使其可以运行,比如来自
windowsrun功能?
3)大多数人都在IDLE中编辑脚本或者其他更多功能
全功能?
4)如何将以前编写的代码块导入到
代码中?剪切和粘贴?什么是组织
代码片段的最佳方式?
谢谢,偷看
1) why don''t python / idle use numbered lines in their scripting, like
basic? how do you keep track of large batches of code without them?
2) in IDLE, how do you save a program such that it can be run, say from
windows the "run" function?
3) are most of you doing your script editing in IDLE or something more
fully featured?
4) how are you importing previously written blocks of code into your
code? cut and paste? what is the best way to organize snippets of
code?
thanks, peeps
推荐答案
1)Python与使用Basic编程
编程时的体验非常不同。我的建议:不要犹豫,花点时间阅读Python手册。
2)双击保存的Python脚本(希望你能保存一个
文件?你还没有发现你可以在IDLE中编辑和运行文件吗?)
3)纯文本编辑器或IDLE是好的。有关更多信息,请参阅Python网站 -
有很多选项可供选择。
4)使用''import''(参见1中的建议))
Claudio Grondi
1) Python is very different from what you expect being experienced in
programming with Basic. My recommendation: don''t hesitate to take the
time to read the Python manual.
2) Double click on saved Python script (hope you are able to save a
file? Haven''t you detected that you can edit and run a file in IDLE?)
3) Plain text editor or IDLE are good. For more see Python website -
there are plenty options to choose from.
4) using ''import'' (see recommendation in 1))
Claudio Grondi
这篇关于关于Python / IDLE的3个简单问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!