mardi 25 décembre 2018

python file reading line by line and check for condition and if it's not true wait until its true without skipping the line

this is my code :

for line in file :
    if(something== something):
        '''do something''' .
    else:
        '''dont skip the line and wait until condition is true then skip to 
           next line'''

Note : im chakeing number of threads in my condition

Aucun commentaire:

Enregistrer un commentaire