def run(x): #判断是否闰年 flag = False if (x%4 == 0) and (x%100 != 0): flag = True elif (x%4 != 0) and (x%400 == 0): flag = True return flag def cal(x): #计算天数 a = list(map(int,x.split())) pool = [[1,31],[2,28],[3,31],[4,30],[5,31],[6,30],[7,31],[8,31],[9,30],[10,31...