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下运行。如不能运行,请留言。
2024-02-26 12:04:04
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下运行。如不能运行,请留言。