StupidBeauty
Read times:365Posted at:Thu Jul 30 02:21:58 2020 - no title specified

Python简单编程任务

  1. 1. 要求

读取第一个命令行参数,该参数是一个数字,表示代码中执行某个动作的次数。具体每次要执行的动作是:休眠1秒,并在终端输出当前的时间。

  1. 2. 举例

假设最终编写出来的脚本文件名是,zzaqra.py,那么,执行以下命令,应当得到以下的输出:

[g@c python.sleep.zzaqrd]$ ./zzaqra.py 5
Current Time = 10:02:40
Current Time = 10:02:41
Current Time = 10:02:42
Current Time = 10:02:43
Current Time = 10:02:44

以上示例中,命令行参数为5,表示要做5次以下动作:睡眠1秒,然后输出当前时间。

Protest over George Floyd death turns

violent, deadly in Minneapolis

Minneapolis police once again used tear gas as widespread looting and multiple fires were

Pro mene eT NoneCOUICOUIN Cele

Your opinions

Your name:Email:Website url:Opinion content:
- no title specified

HxLauncher: Launch Android applications by voice commands