Skip to content
Advertisement

How could i save all the hashes generated from jpg images into a csv file and not only the last one?

JavaScript

how to save all the hashes generated into the same csv file and not only the last one

Advertisement

Answer

Here, you’re overwriting your list_rows variable for every step in the loop. You should append to the list instead, and then write the content of the list to your csv.

JavaScript

PS: Try not to override builtin (like hash) that may be dangerous !

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement