它一直说“语法错误”。
import datetime
import calendar
def findDay(date):
born = datetime.datetime.strptime(date, %d %m %y)
day = born.weekday()
return (calendar.day_name[day])
date = '01 01 1989'
print(findDay(date))
cmd中显示错误
小怪兽爱吃肉
相关分类