← 返回列表

Python3 os 模块 Makedirs 方法

Python3 os 模块 Makedirs 方法 #!/usr/bin/python3 import os, sys # Path to be created path = "d:/tmp/home/monthly/daily" os.makedirs( path, 493 ) #decimal equivalent of 0755 used on Windows print ("Path is created")

Python3 os 模块 Makedirs 方法

#!/usr/bin/python3
import os, sys

# Path to be created
path = "d:/tmp/home/monthly/daily"

os.makedirs( path, 493 ) #decimal equivalent of 0755 used on Windows

print ("Path is created")

打开资源 ↗

交流与评论