with open("name.txt",'r') as read_file:
    for name in read_file:
        list_name = (name.split(','))
        quchong = list(set(list_name))
        with open("server_name",'w') as write_file:
            for item in quchong:
                write_file.writelines(item + '\n')

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-05
  • 2021-12-10
  • 2022-12-23
  • 2021-07-28
  • 2022-12-23
猜你喜欢
  • 2021-08-16
  • 2021-05-20
  • 2022-12-23
  • 2022-12-23
  • 2021-05-13
  • 2021-08-23
  • 2021-08-16
相关资源
相似解决方案