repl.it
@cjkevin0912/

python-basic-hw07

Python

No description

fork
loading
Files
  • main.py
main.py
1
2
3
4
5
6
7
raw_log_file = '128.90.16.86,186.182.189.72,70.25.134.67,153.40.249.245, 58.246.211.25,128.90.16.86,186.182.189.72,170.25.134.67, 10.40.249.245,58.246.211.25'
ip_address = (raw_log_file.split(',')) 
print(ip_address)
print(len(ip_address))
ip_address_unique = set(ip_address)
print(ip_address_unique)
print(len(ip_address_unique))