import os,shutil
os.chdir(r'c:\Documents and Settings\Anyway\桌面\11')
for i in os.listdir(os.getcwd()):
os.chdir(r'c:\Documents and Settings\Anyway\桌面\11')
path = os.getcwd()+'\\'+i
os.mkdir(path+'file')
shutil.move(path,path+'file')
for i in os.listdir(os.getcwd()):
os.chdir(moviepath)
path = os.getcwd()+'\\'+i ifnot os.path.isdir(path):
newpath = os.path.splitext(path)[0]
os.mkdir(newpath)
shutil.move(path,newpath)