关于Python / IDLE的3个简单问题 [英] 3 Simple Questions About Python/IDLE

查看:259
本文介绍了关于Python / IDLE的3个简单问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

推荐答案

Omar写道:
Omar wrote:

1)为什么不要python / idle在他们的脚本中使用编号的行,比如

基本?如何在没有它们的情况下跟踪大批量的代码?


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


谢谢

thanks


谢谢。


i已按照建议保存并双击。当我保存并双击

点击一个简单的hello program时,b& w python shell会短暂出现,

然后消失。它是如何工作的?

thanks.

i have saved and double clicked as suggested. when I save and double
click a simple "hello program", the b&w python shell briefly comes up,
then disappears. is this how it should work?


这篇关于关于Python / IDLE的3个简单问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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