Miscellany
public python v1 · immutablef=open('partie', 'r')g=open('partie2.pgn','w')czytamy=Falsefor line in f: a=f.readline() if czytamy==False: if a.count('Even') and a.count ('FICS') and a.count('game'): czytamy=True if (a.count('1-0') or a.count('0-1') or a.count('1/2-1/2')) and not a.count('Result'): g.write(a) g.write('\n') czytamy=False if czytamy: g.write(a)f.close()g.close()