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
 

 

相关文章:

  • 2021-08-04
  • 2021-09-12
  • 2021-11-18
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-29
猜你喜欢
  • 2021-06-26
  • 2021-12-03
  • 2022-01-20
  • 2021-10-19
  • 2022-12-23
  • 2021-07-30
  • 2021-05-27
相关资源
相似解决方案