StupidBeauty
Read times:3280Posted 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

 
Recent comments
2017年4月~2019年4月垃圾短信排行榜Posted at:Thu Sep 26 04:51:48 2024
Qt5.7文档翻译:QWebEngineCookieStore类,QWebEngineCookieStore ClassPosted at:Fri Aug 11 06:50:35 2023盲盒kill -9 18289 Grebe.20230517.211749.552.mp4