当前位置:网站首页>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
······
······
······
边栏推荐
- Classic application of MOS transistor circuit design (1) -iic bidirectional level shift
- Verilog -- state machine coding method
- Carrier period, electrical speed, carrier period variation
- STM32 virtualization environment of QEMU
- Shape template matching based on Halcon learning [viii] PM_ multiple_ models. Hdev routine
- General makefile (I) single C language compilation template
- 实例007:copy 将一个列表的数据复制到另一个列表中。
- Summary of SIM card circuit knowledge
- Use indent to format code
- Installation and use of libjpeg and ligpng
猜你喜欢
Take you to understand the working principle of lithium battery protection board
Shape template matching based on Halcon learning [viii] PM_ multiple_ models. Hdev routine
[tutorial 19 of trio basic from introduction to proficiency] detailed introduction of trio as a slave station connecting to the third-party bus (anybus PROFIBUS DP...)
Correlation based template matching based on Halcon learning [II] find_ ncc_ model_ defocused_ precision. hdev
Volatile of C language
STM32 single chip microcomputer -- volatile keyword
Compilation warning solution sorting in Quartus II
实例004:这天第几天 输入某年某月某日,判断这一天是这一年的第几天?
NTC thermistor application - temperature measurement
Shape template matching based on Halcon learning [VII] reuse_ model. Hdev routine
随机推荐
Step motor generates S-curve upper computer
Stablq of linked list
Bluetooth hc-05 pairing process and precautions
实例005:三数排序 输入三个整数x,y,z,请把这三个数由小到大输出。
STM32 --- configuration of external interrupt
Sizeof (function name) =?
leetcode - 445. 两数相加 II
Live555 push RTSP audio and video stream summary (I) cross compilation
What are the test items of power battery ul2580
剑指 Offer 09. 用两个栈实现队列
VESC Benjamin test motor parameters
Shape template matching based on Halcon learning [v] find_ cocoa_ packages_ max_ deformation. Hdev routine
Imx6ull bare metal development learning 1-assembly lit LED
Talk about the function of magnetic beads in circuits
Sql Server的存儲過程詳解
My-basic application 1: introduction to my-basic parser
關於線性穩壓器的五個設計細節
STM32---IIC
Semiconductor devices (III) FET
Take you to understand the working principle of lithium battery protection board