[root@localhost python]# ls
break.py function_global.py mymodule_demo.py using_name.pyc
CompressFolder.py function_key.py mymodule.py using_sys.py
continue.py function_local.py mymodule.pyc using_tuple.py
DocString.py function_param.py test1.zip var.py
expression.py function_return.py test3.zip vbar.py
for.py helloworld.py test.zip while.py
function1.py if.py using_list.py
function_default.py mymodule_demo2.py using_name.py
[root@localhost python]# pwd
/root/python
[root@localhost python]# python CompressFolder.py
Please input you want to compress's directory:/root/python
Please enter the Compressed file name:test2.zip
Please wait,Compressing file...
Compressed file success!!!
[root@localhost python]# ls
break.py function_global.py mymodule_demo.py using_name.py
CompressFolder.py function_key.py mymodule.py using_name.pyc
continue.py function_local.py mymodule.pyc using_sys.py
DocString.py function_param.py test1.zip using_tuple.py
expression.py function_return.py test2.zip var.py
for.py helloworld.py test3.zip vbar.py
function1.py if.py test.zip while.py
function_default.py mymodule_demo2.py using_list.py
[root@localhost python]#