os.path.join里写3个变量

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了os.path.join里写3个变量相关的知识,希望对你有一定的参考价值。

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个变量的主要内容,如果未能解决你的问题,请参考以下文章