Re: [Tutor] loop couldn't work well and file couldn't close

2014-04-22 Thread Dave Angel
baidusandy Wrote in message: [invisible message not copied here] By posting in html, you managed to pick black on black text. I literally could see none of your message except the boilerplate. Please tell your email program to use text mode. -- DaveA _

Re: [Tutor] loop couldn't work well and file couldn't close

2014-04-22 Thread Alan Gauld
On 22/04/14 17:13, baidusandy wrote: I'm a newbie to Python. I want to make python useful to my work, to write a script for get some data out. But there are some setbacks. I really needs your help. Please, help me. Its too late for me to study your code properly but here are a few immediate obs

[Tutor] loop couldn't work well and file couldn't close

2014-04-22 Thread baidusandy
I'm a newbie to Python. I want to make python useful to my work, to write a script for get some data out. But there are some setbacks. I really needs your help. Please, help me. ---the first one-- for x in range(1,a): tem=open('results\\temp'+str(x)) tem.seek(0) i_line=tem.