How to get the current time in Python, the format is as follows:
2017-06-23 22:12:35
ringa_lee
Reference article: Get the current time in Python
import time time.strftime("%Y-%m-%d %H:%M:%S")
import datetime datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S")
Reference article: Get the current time in Python
time module (low level)
datetime module (high level Object-oriented interface to dates and times)