python中的周几
from datetime import datetime
###返回数字1-7代表周一到周日 dayOfWeek = datetime.now().isoweekday() ###返回从0开始的数字,比如今天是星期5,那么返回的就是4 day_Week = datetime.now().weekday() print(dayOfWeek) print(day_Week)
isoweekday() 周几
weekday() 需要+1天得到正确的周几
------------------------- A little Progress a day makes you a big success... ----------------------------