Dec-17-2019, 05:05 PM
(Dec-17-2019, 04:50 PM)74razor Wrote: I hope that makes sense.
Not really. Do you want the keys to be the IP addresses and the values to be the node name? If so, that's easy:
addresses = {} with open('data.csv') as data_file: for line in data_file: fields = line.split(',') addresses[fields[0]] = field[1]If that is not what you want, please show me the actual dictionary you want.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures