当前位置:网站首页>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
······
······
······
边栏推荐
- H264 (I) i/p/b frame gop/idr/ and other parameters
- The firmware of the connected j-link does not support the following memory access
- STM32 summary (HAL Library) - DHT11 temperature sensor (intelligent safety assisted driving system)
- [trio basic tutorial 18 from introduction to proficiency] trio motion controller UDP fast exchange data communication
- Compilation warning solution sorting in Quartus II
- Stm32--- systick timer
- Use indent to format code
- C WinForm [display real-time time in the status bar] - practical exercise 1
- Several important parameters of LDO circuit design and type selection
- Measurement fitting based on Halcon learning [i] fuse Hdev routine
猜你喜欢
![Shape template matching based on Halcon learning [v] find_ cocoa_ packages_ max_ deformation. Hdev routine](/img/a1/d13b37955b044b6be5f1fd10263c5e.jpg)
Shape template matching based on Halcon learning [v] find_ cocoa_ packages_ max_ deformation. Hdev routine

Take you to understand the working principle of lithium battery protection board
![C WinForm [help interface - send email] - practice five](/img/2a/c4e7abe054e6fdd45acc7d297a033d.jpg)
C WinForm [help interface - send email] - practice five

DokuWiki deployment notes

Several implementation schemes of anti reverse connection protection of positive and negative poles of power supply!
实例001:数字组合 有四个数字:1、2、3、4,能组成多少个互不相同且无重复数字的三位数?各是多少?

Bluebridge cup internet of things basic graphic tutorial - GPIO output control LD5 on and off

实例004:这天第几天 输入某年某月某日,判断这一天是这一年的第几天?

NTC thermistor application - temperature measurement
![[trio basic from introduction to mastery tutorial 20] trio calculates the arc center and radius through three points of spatial arc](/img/9e/2524cbb9b90135c54669ba8d5338b7.jpg)
[trio basic from introduction to mastery tutorial 20] trio calculates the arc center and radius through three points of spatial arc
随机推荐
Google sitemap files for rails Projects - Google sitemap files for rails projects
STM32 outputs 1PPS with adjustable phase
NTC thermistor application - temperature measurement
Sql Server的存儲過程詳解
剑指 Offer 05. 替换空格
STM32---ADC
Measurement fitting based on Halcon learning [II] meaure_ pin. Hdev routine
UE像素流,来颗“减肥药”吧!
Charge pump boost principle - this article will give you a simple understanding
Bluetooth hc-05 pairing process and precautions
Sql Server的存储过程详解
Summary of SIM card circuit knowledge
Soem EtherCAT source code analysis I (data type definition)
Detailed explanation of SQL server stored procedures
Verilog -- state machine coding method
My-basic application 2: my-basic installation and operation
动力电池UL2580测试项目包括哪些
STM32---IIC
STM32 tutorial triple ADC interleaved sampling
Shape template matching based on Halcon learning [v] find_ cocoa_ packages_ max_ deformation. Hdev routine