In [1]: from datetime import datetimeIn [2]: datetime.now()Out[2]: datetime.datetime(2015, 1, 31, 12, 19, 46, 862178)
如果解决了您的问题请采纳!如果未解决请继续追问!