当前位置:网站首页>Example 009: pause output for one second
Example 009: pause output for one second
2022-07-05 08:22:00 【Lazy smile】
Topic content
#### example 009: Pause output for one second # ** subject :** Pause output for one second .
Problem analysis
** Use time Modular sleep() Function implementation pause .
Program
import time
while True:
# print(time.asctime())
print(time.strftime('%Y-%m-%d %H:%M:%S'))
time.sleep(1)
Output results
2022-07-04 22:06:08
2022-07-04 22:06:09
2022-07-04 22:06:10
2022-07-04 22:06:11
2022-07-04 22:06:12
2022-07-04 22:06:13
2022-07-04 22:06:14
2022-07-04 22:06:15
2022-07-04 22:06:16
2022-07-04 22:06:17
2022-07-04 22:06:18
2022-07-04 22:06:19
2022-07-04 22:06:20
······
······
······
边栏推荐
- On boost circuit
- [trio basic from introduction to mastery tutorial XIV] trio realizes unit axis multi-color code capture
- Slist of linked list
- Soem EtherCAT source code analysis I (data type definition)
- 如何写Cover Letter?
- Carrier period, electrical speed, carrier period variation
- leetcode - 445. 两数相加 II
- Sizeof (function name) =?
- Some thoughts on extracting perspectives from ealfa and Ebeta
- Keil use details -- magic wand
猜你喜欢
Bluebridge cup internet of things basic graphic tutorial - GPIO output control LD5 on and off
Halcon's practice based on shape template matching [1]
Keil use details -- magic wand
STM32 single chip microcomputer -- volatile keyword
STM32---ADC
Ble encryption details
[cloud native | learn kubernetes from scratch] III. kubernetes cluster management tool kubectl
STM32 summary (HAL Library) - DHT11 temperature sensor (intelligent safety assisted driving system)
C WinForm [change the position of the form after running] - Practical Exercise 4
Compilation warning solution sorting in Quartus II
随机推荐
STM32 tutorial triple ADC interleaved sampling
Working principle and type selection of common mode inductor
STM32 --- GPIO configuration & GPIO related library functions
实例004:这天第几天 输入某年某月某日,判断这一天是这一年的第几天?
Semiconductor devices (III) FET
Some thoughts on extracting perspectives from ealfa and Ebeta
动力电池UL2580测试项目包括哪些
剑指 Offer 06. 从尾到头打印链表
What are the test items of power battery ul2580
UE像素流,来颗“减肥药”吧!
Bluebridge cup internet of things basic graphic tutorial - GPIO output control LD5 on and off
Relationship between line voltage and phase voltage, line current and phase current
The firmware of the connected j-link does not support the following memory access
Some tips for using source insight (solve the problem of selecting all)
QEMU demo makefile analysis
Installation and use of libjpeg and ligpng
Management and use of DokuWiki
Charge pump boost principle - this article will give you a simple understanding
C WinForm [help interface - send email] - practice five
Class of color image processing based on Halcon learning_ ndim_ norm. hdev