[root@localhost python]# ls
break.py funct
ion_global.py mymodule_demo.py using_list.py
CompressFolder.py function_key.py mymodule.py using_name.py
continue.py function_local.py mymodule.pyc using_name.pyc
DocString.py function_param.py test1.zip using_sys.py
expression.py function_return.py test2.zip using_tuple.py
for.py helloworld.py test3.zip var.py
function1.py if.py test.zip vbar.py
function_default.py mymodule_demo2.py Traversal.py while.py
[root@localhost python]# chmod +x Traversal.py
[root@localhost python]# python Traversal.py
Please enter directory to traversal:/root/python
/root/python
FileName: test2.zip
FileName: using_sys.py
FileName: function_default.py
FileName: function_local.py
FileName: CompressFolder.py
FileName: var.py
FileName: mymodule.py
FileName: vbar.py
FileName: using_tuple.py
FileName: function1.py
FileName: function_global.py
FileName: test.zip
FileName: helloworld.py
FileName: mymodule_demo.py
FileName: test1.zip
FileName: using_list.py
FileName: function_key.py
FileName: continue.py
FileName: using_name.py
FileName: Traversal.py
FileName: break.py
FileName: if.py
FileName: test3.zip
FileName: expression.py
FileName: function_return.py
FileName: DocString.py
FileName: mymodule.pyc
FileName: while.py
FileName: for.py
FileName: mymodule_demo2.py
FileName: function_param.py
FileName: .using_tuple.py.swp
FileName: using_name.pyc
[root@localhost python]#
0