摘要:
>>> import datetime >>> today=datetime.date.today() >>> print today 2018-01-17 >>> formatted_today=today.strftime('%y%m%d') >>> print formatted_today 阅读全文
摘要:
python 获取星期几 from datetime import datetime dayOfWeek = datetime.now().isoweekday() ###返回数字1-7代表周一到周日 day_Week = datetime.now().weekday() ###返回从0开始的数字, 阅读全文