import os
if not os.path.isdir("result"):
os.mkdir("result")
if not os.path.isdir("result/tf"):
os.mkdir("result/tf")
a = open("result/tf/video.html", "a", encoding="utf-8")
b = a.write("html")
a.close()
os模块在当前目录创建文件夹和文件
最新推荐文章于 2024-08-21 17:48:41 发布