The Code
import datetime
print datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S")
The Result
Reference:
How to print date in a regular format in Python?
This blog is for keeping my study notes, sharing knowledge and showing the products of my study.. I welcome your feedback...