ips = ['', '123.125.71.49', '164.132.161.48', '217.182.132.55', '217.182.132.55', '217.182.132.94', '220.181.108.162', 
'51.255.65.47', '51.255.65.6', '51.255.65.77', '51.255.65.96'] r = Counter(ips) zip(r.values(),r.keys()) fr = r.most_common()#这里可以指定个数 for line in fr: if line: if line[0]: print('ip个数:',line[1],' ip:',line[0])

 

相关文章:

  • 2022-12-23
  • 2021-08-30
  • 2021-09-13
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-08
  • 2021-12-16
猜你喜欢
  • 2021-04-13
  • 2022-12-23
  • 2021-04-19
  • 2021-07-06
  • 2021-05-30
  • 2021-07-30
相关资源
相似解决方案