python返回昨天的日期

From , 5 Years ago, written in Python, viewed 246 times.
URL https://pastebin.vip/view/e531e258
  1.  #-*-coding:utf-8-*-  
  2. import datetime
  3.  
  4. def getYesterday():   #
  5.    today=datetime.date.today()  
  6.    oneday=datetime.timedelta(days=1)  
  7.    yesterday=today-oneday  
  8.    return yesterday

Reply to "python返回昨天的日期"

Here you can reply to the paste above

captcha

https://burned.cc - Burn After Reading Website