清单12给出了用来处理两个参数和根据这些需求清理部分路径的代码。
Listing 12 shows the code I used to handle the two parameters and cleanse the partial path according to these requirements.
这个脚本为根据提供的搜索路径和搜索模式搜索到的文件创建一个名为 “test.zip” 的 zip 文件。
This script creates a zip named 'test.zip' of the files found as a result of the search based on the provided search path and search pattern.
根据您的系统和存放zip文件的位置,可能要修改路径。
You might need to modify the path according to your system and where you deposit the zip file.
应用推荐