#!/usr/bin/python3 import os import codecs #lst=['5926','5878','5912','5939','5885','4300','1042'] lst=['5926'] dir_prefix='/var/www/jared-faq/' for l in lst: curdir=dir_prefix+l if not os.path.exists(curdir): os.mkdir(curdir)