learnbat 当前离线
列兵
依山居 ( 伸手党去死,私信问问题的去死)当前离线
中尉
sf=open("test.txt","rb") txt=sf.read() time=5 def rw(txt,time): for t in range(0,time): fn="F%05d" % t open(fn,"wb").write(txt) rw(txt,time)复制代码
TOP
import shutil sf="test.txt" time=5 def shutilcp(sf,t): for t in range(1,t,1): fn="F%05d" % t + ".txt" shutil.copyfile(sf,fn) shutilcp(sf,time)复制代码