首页
191问答库
>
python3.X 以日期为名字输出txt文件应该怎么写?
python3.X 以日期为名字输出txt文件应该怎么写?
2024-07-18 11:16:58
推荐回答(1个)
回答1:
import time
st=time.strftime("%Y%m%d",time.localtime())
file=open("note"+st+".txt",'w')
相关问答
python如何创建日期命名文件?
用python 列出指定目录下所有的txt文件,并输出每个文...
易语言如何做写到文本TXT格式是以日期为名字的TXT文档
怎么让python 创建 日期命名文件
cmd 如何输出到以时间命名的文件
shell脚本实现定时生成个以当前时间命名的TXT文件,然后...
请问在LINUX当中,如何将当前日期时间写入txt文件中 以...
如何写一个sh脚本,输出一段当前系统日期到文档aa.txt
最新问答
vivoy67应用锁壁纸怎么换
大连医大二院到大菜市怎么走
学汽车专业有前途吗?
西方主要大国军事思想,包括代表著作、思想家?
中国的天气预报准度有百分之几?
极品飞车12英文版怎么改成中文版的
一个女孩的眼界特别高和眼光高说明女孩怎样?
vivo手机应用商店无法更新应用怎么回事?
天津外国语大学 这所学校怎么样
王阿姨去超市买了8千克的大米,付给营业员30元,找回4.4元,每千克大米多少元