用户工具

站点工具


pieces:python:不存在则创建目录
import os
target_dir = 'xxx'
if not os.path.exists(target_dir):
    os.mkdir(target_dir)
pieces/python/不存在则创建目录.txt · 最后更改: 2020/12/01 21:12 由 plough

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki