Re: Question of Python second loop break and indexes

2012-05-09 Thread Ulrich Eckhardt
Am 09.05.2012 10:36, schrieb lilin Yi: > //final_1 is a list of Identifier which I need to find corresponding > files(four lines) in x(x is the file) and write following four lines > in a new file. > > //because the order of the identifier is the same, so after I find the > same identifier in x ,

Re: Question of Python second loop break and indexes

2012-05-09 Thread MRAB
On 09/05/2012 09:36, lilin Yi wrote: //final_1 is a list of Identifier which I need to find corresponding files(four lines) in x(x is the file) and write following four lines in a new file. //because the order of the identifier is the same, so after I find the same identifier in x , the next ti

Question of Python second loop break and indexes

2012-05-09 Thread lilin Yi
//final_1 is a list of Identifier which I need to find corresponding files(four lines) in x(x is the file) and write following four lines in a new file. //because the order of the identifier is the same, so after I find the same identifier in x , the next time I want to start from next index in x