Writing list of objects to csv file
问题 I am writing a python program that loops through reddit submissions, pulls data, and stores it as an object in a list. However I am having trouble writing that list to a csv file. The file is created but it just gives some kind of id tag for the objects. How should I change the csv code? Code import praw from datetime import datetime import pandas as pd class Submission: def __init__(self, time, score, title, text, ofReddit, serious): self.time = time self.score = score self.title = title