python idle运行时显示3错误,关于Python / IDLE的3个简单问题

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 wrote:

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 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

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?

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值