import yaml with open("a.yaml") as f: with open("a.yaml") as k: while(1): x=f.readline() if(x): if(x==k.readline()): pass else: print("not equal") else: print("end!") break
2024-04-08 20:02:16
import yaml with open("a.yaml") as f: with open("a.yaml") as k: while(1): x=f.readline() if(x): if(x==k.readline()): pass else: print("not equal") else: print("end!") break