반응형
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
Tags
- GIT
- dataframe
- c#
- Redshift
- list
- Kotlin
- Excel
- numpy
- hive
- 파이썬
- PySpark
- Github
- Mac
- array
- django
- Python
- math
- string
- Google Excel
- gas
- google apps script
- Apache
- Java
- PostgreSQL
- matplotlib
- PANDAS
- SQL
- Google Spreadsheet
- Tkinter
Archives
- Today
- Total
목록time.sleep (1)
달나라 노트
Python time : sleep (Python 코드 작동 일시정지)
Python time 모듈의 sleep method는 Python 코드의 실행을 몇 초 동안 일시정지하는 기능을 가집니다. import time time.sleep(second) 사용법은 간단합니다. sleep method에 sleep할 초를 적어주면 됩니다. import time import datetime dttm_now = datetime.datetime.now() print(dttm_now) time.sleep(20) dttm_now = datetime.datetime.now() print(dttm_now) -- Result 2022-02-22 00:03:49.997681 2022-02-22 00:04:09.999083 위 코드는 약 20초간 sleep하는 코드입니다. 처음에 print되는 현재 ..
Python/Python ETC
2022. 2. 22. 00:02