참고 >
Python - datetime/time module, 현재 시간 출력 방법
datetime 혹은 time module 중 하나를 이용하여 현재 시간을 표시할 수 있다. 먼저 datetime 을 이용한 현재 시간 표현은 다음과 같다. import datetime now = datetime.datetime.now() print now 결과> $ python..
technote.kr
import datetime
now = datetime.datetime.now()
texts = str(now) + " : " + n
self.Log_Edit_1.append(texts)
result :
....
2021-02-01 10:10:24.987431 : b'\x01H\x00\x00\x00\x17\x01\x03\x14\xaa0\n7\x0b\xfa\x0b\xfa\x0b\xfa\x0b\xfa\x00\x00\x00\x00\x00\x00\x00\x00'
2021-02-01 10:10:25.214453 : b'\x01I\x00\x00\x00\x17\x01\x03\x14\xaa0\n7\x0b\xfa\x0b\xfa\x0b\xfa\x0b\xfa\x00\x00\x00\x00\x00\x00\x00\x00'
2021-02-01 10:10:25.442433 : b'\x01P\x00\x00\x00\x17\x01\x03\x14\xaa0\n7\x0b\xfa\x0b\xfa\x0b\xfa\x0b\xfa\x00\x00\x00\x00\x00\x00\x00\x00'
....
'IT > Python' 카테고리의 다른 글
[파이썬] pyCharm에서 pip로 라이브러리 연결하기 (0) | 2021.02.24 |
---|---|
[Python] matplotlib으로 그래프 그리기 (0) | 2021.02.02 |
[Python] MQTT 통신 (0) | 2021.02.02 |
[Python] QT Dialog 간 데이터 전달 (0) | 2021.02.02 |
[Python] Serial 통신(읽기/쓰기), 사용가능한 시리얼 포트 검색 (0) | 2021.02.02 |
댓글