当前位置:网站首页>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
······
······
······
边栏推荐
- [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...)
- Take you to understand the working principle of lithium battery protection board
- Problem solving: interpreter error: no file or directory
- DokuWiki deployment notes
- List of linked lists
- Installation and use of libjpeg and ligpng
- Shape template matching based on Halcon learning [vi] find_ mirror_ dies. Hdev routine
- Soem EtherCAT source code analysis attachment 1 (establishment of communication operation environment)
- Hardware and software solution of FPGA key chattering elimination
- Negative pressure generation of buck-boost circuit
猜你喜欢
Shell script
实例002:“个税计算” 企业发放的奖金根据利润提成。利润(I)低于或等于10万元时,奖金可提10%;利润高于10万元,低于20万元时,低于10万元的部分按10%提成,高于10万元的部分,可提成7.
Take you to understand the working principle of lithium battery protection board
[three tier architecture]
Summary of SIM card circuit knowledge
MySQL之MHA高可用集群
Carrier period, electrical speed, carrier period variation
Class of color image processing based on Halcon learning_ ndim_ norm. hdev
Simple design description of MIC circuit of ECM mobile phone
STM32 single chip microcomputer -- debug in keil5 cannot enter the main function
随机推荐
Hardware 3 -- function of voltage follower
My-basic application 1: introduction to my-basic parser
Imx6ull bare metal development learning 2- use C language to light LED indicator
Void* C is a carrier for realizing polymorphism
Correlation based template matching based on Halcon learning [II] find_ ncc_ model_ defocused_ precision. hdev
STM32 single chip microcomputer - external interrupt
C WinForm [display real-time time in the status bar] - practical exercise 1
剑指 Offer 05. 替换空格
Simple design description of MIC circuit of ECM mobile phone
Step motor generates S-curve upper computer
Anonymous structure in C language
Volatile of C language
实例005:三数排序 输入三个整数x,y,z,请把这三个数由小到大输出。
Shape template matching based on Halcon learning [vi] find_ mirror_ dies. Hdev routine
实例001:数字组合 有四个数字:1、2、3、4,能组成多少个互不相同且无重复数字的三位数?各是多少?
Bootloader implementation of PIC MCU
Talk about the function of magnetic beads in circuits
Live555 push RTSP audio and video stream summary (III) flower screen problem caused by pushing H264 real-time stream
Solutions to compilation warnings in Quartus II
Keil use details -- magic wand