码迷,mamicode.com
首页 > 其他好文 > 详细

os.path.join里写3个变量

时间:2018-07-11 10:41:21      阅读:182      评论:0      收藏:0      [点我收藏+]

标签:定义   line   image   str   adl   dir   readlines   close   pen   

os.path.join里写3个变量

注:

必须为变量,不是变量需先定义为变量

dst="/home/ming"

Images = "Images"

d = open(‘/log/aa.txt‘,‘r‘)
for e in d.readlines():
d.close()
os.makedirs(os.path.join(dst,e.strip(),Images))

os.path.join里写3个变量

标签:定义   line   image   str   adl   dir   readlines   close   pen   

原文地址:http://blog.51cto.com/yangzhiming/2140126

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!