for i in range(100,-1,-1): print "%s\n"%i;
import
os
path
=
'D:\\Test'
for
root, dirs, files
in
os.walk(path):
print
(
"Root = "
, root,
"dirs = "
, dirs,
"files = "
, files)
代码于python3 vs2013下运行。如不能运行,请留言。