I have a text file with this data
1, Jane Doe, 1991 2, Sam Smith, 1982 3, John Sung, 1965 4, Tony Tembo, 1977
Can I create a dictionary from this file which would look like this:
{1: [Jane Doe, 1991], 2: [Sam Smith, 1982]...}
https://stackoverflow.com/questions/67378272/create-python-dictionary-from-text-file May 04, 2021 at 11:04AM
没有评论:
发表评论