>>> import datetime >>> now = datetime.datetime.now() >>> now datetime.datetime(2015, 4, 2, 12, 18, 37, 962347) >>> print now 2015-04-02 12:18:37.962347
时间: 2024-10-13 23:51:11
>>> import datetime >>> now = datetime.datetime.now() >>> now datetime.datetime(2015, 4, 2, 12, 18, 37, 962347) >>> print now 2015-04-02 12:18:37.962347