- {registration_date}
- сообщений: {posts}
- {tel_link}
А не легче ли будет так?
import os
files, folders, other_folders=[], [], []
def skan(path='C:\\'):
global files, folders, other_folders
for i in os.listdir(path):
if os.path.isdir(path+i):
folders+=[path+i+'\\']
other_folders+=[path+i+'\\']
else:
files+=[path+i]
if other_folders!=[]:
skan(other_folders.pop())
ответ опубликован:
Рейтинг: 5
голосов: 2
- 5
- 1
- 2
- 3
- 4
- 5