os.getcwd()
os.path.realpath(__file__)
os.path.join()
import os
try:
fileName = "C:\\Users\\Edisonyao\\Desktop\\flink"
count = 1
for i in range(3):
os.makedirs("%s/file%d"%(fileName,count))
count += 1
except Exception as e:
print(e)
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) | Powered by Discuz! X3.2 |