資源簡介
import build_folder as bd bd.build_folder(r"D:\note.txt",r"D:\test")
代碼片段和文件信息
#!/usr/bin/env?python
#?-*-?coding:?utf-8?-*-
#?@Date????:?2019-10-09?14:45:57
#?@Author??:?崔立波?(baiyuexingchen@gmail.com)
#?@link????:?https://github.com/Franklyn1987
#?@Version?:?$Id$
import?os
import?time
print(“用于批量生成文件夾,build_folder(需要生成文件夾的名稱文檔.txt生成的目錄所在文件夾,屬性)True生成對應的txt,False沒有txt文檔生成“)
def?build_folder(readtxt_pathfolder_pathtypee):
path?=?folder_path?
with?open(readtxt_path?‘r‘?encoding=‘utf
- 上一篇:圖像分割結果評估方法(python)
- 下一篇:美圖錄爬蟲(python源碼)
評論
共有 條評論