program filename detail 程序文件名
Begin with a simple program that reads in a filename from the command-line.
首先从一个简单的程序开始,该程序从命令行读入一个文件名。
If you provide a filename as an argument, the monkeyrunner command runs the file's contents as a Python program; otherwise, it starts an interactive session.
如果您提供一个文件名作为运行参数,则monkeyrunner将视文件内容为Python程序,并加以运行;否则,它将提供一个交互对话环境。
You will notice that this program takes two parameters: the filename and the longest delay one is willing to wait.
您将注意到这个程序采用两个参数:文件名和客户愿意等待的最长延迟。
应用推荐