Home > other >  CSV format save the file, data display is not ideal
CSV format save the file, data display is not ideal

Time:10-06

Online small white consult everybody bosses,
(Python web crawler)
Crawl to the data in CSV format, please save, save after open the full display data in a cell how to solve the problem of
?
The first and second picture is the place where possible problems (source code)
The third is the problem of display the results
Fourth is ideal to display the results

CodePudding user response:

Save a dictionary, the for loop to the contents of each cell to header (the keys of the dictionary)
  • Related