怎么批量在txt文件头部添加文本并换行? 最好不要下载软件,用bat就行。
收起
python with open(文件,‘a+’)as f: f.seek(0) f.write(需要添加的文本内容)
报告相同问题?