当前位置:网站首页>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
······
······
······
边栏推荐
- Hardware 3 -- function of voltage follower
- QEMU demo makefile analysis
- STM32 virtualization environment of QEMU
- Bootloader implementation of PIC MCU
- OC and OD gate circuit
- Management and use of DokuWiki (supplementary)
- Why is 1900 not a leap year
- Detailed explanation of SQL server stored procedures
- List of linked lists
- 【论文阅读】2022年最新迁移学习综述笔注(Transferability in Deep Learning: A Survey)
猜你喜欢
Shape template matching based on Halcon learning [viii] PM_ multiple_ models. Hdev routine
Halcon's practice based on shape template matching [1]
The firmware of the connected j-link does not support the following memory access
实例009:暂停一秒输出
After installing the new version of keil5 or upgrading the JLINK firmware, you will always be prompted about the firmware update
剑指 Offer 05. 替换空格
Halcon's practice based on shape template matching [2]
Carrier period, electrical speed, carrier period variation
Detailed summary of FIO test hard disk performance parameters and examples (with source code)
Measurement fitting based on Halcon learning [III] PM_ measure_ board. Hdev routine
随机推荐
Correlation based template matching based on Halcon learning [II] find_ ncc_ model_ defocused_ precision. hdev
Slist of linked list
Classic application of MOS transistor circuit design (1) -iic bidirectional level shift
C WinForm [exit application] - practice 3
Detailed summary of FIO test hard disk performance parameters and examples (with source code)
[three tier architecture]
Synchronization of QT multithreading
2020-05-21
实例006:斐波那契数列
Shape template matching based on Halcon learning [viii] PM_ multiple_ models. Hdev routine
Take you to understand the working principle of lithium battery protection board
Volatile of C language
Tailq of linked list
go依赖注入--google开源库wire
[paper reading] the latest transfer ability in deep learning: a survey in 2022
Several important parameters of LDO circuit design and type selection
QEMU STM32 vscode debugging environment configuration
Design a clock frequency division circuit that can be switched arbitrarily
Sizeof (function name) =?
实例010:给人看的时间