获取当前日期:
from datetime import datetime
IN:datetime.now()
OUT:datetime(2016,10,19,6,51,21,72341)
转化为字符串显示:
str(datetime.now)
http://stackoverflow.com/questions/415511/how-to-get-current-time-in-python
获取当前日期:
from datetime import datetime
IN:datetime.now()
OUT:datetime(2016,10,19,6,51,21,72341)
转化为字符串显示:
str(datetime.now)
http://stackoverflow.com/questions/415511/how-to-get-current-time-in-python
转载于:https://www.cnblogs.com/starsea/p/5975876.html