参考博文: python在with open()函数中,如何在文件名设置中引用变量
noww = time.strftime("%Y%m%d", time.localtime(time.time()))
with open('runs/{0}.csv'.format(noww), 'a', newline='') as file:
writer = csv.writer(file)

noww = time.strftime("%Y%m%d", time.localtime(time.time()))
with open('runs/{0}.csv'.format(noww), 'a', newline='') as file:
writer = csv.writer(file)