# shift_day ```python day_in_month = 31 shift_night_day = 1 shift_sp_day = 1 night_cycle = [4.02,4.02,4.02,6.02,6.02,6.02,0,0,0] sp1_cycle = [4.01,4.01,4.01,4.01,4.01,0,0,0,0,0] sp2_cycle = [6.01,6.01,6.01,6.01,6.01,0,0,0,0,0] # 白3-7 夜3-11 x10 = [4.01,4.01,4.01,4.01,4.01,0,0,0,0,0,4.01,4.01,4.01,4.01,4.01,0,0,0,0,0,4.01,4.01,4.01,4.01,4.01,0,0,0,0,0,4.01] x11 = [0,0,0,0,0,4.01,4.01,4.01,4.01,4.01,0,0,0,0,0,4.01,4.01,4.01,4.01,4.01,0,0,0,0,0,4.01,4.01,4.01,4.01,4.01,0] x12 = [6.01,6.01,6.01,6.01,6.01,0,0,0,0,0,6.01,6.01,6.01,6.01,6.01,0,0,0,0,0,6.01,6.01,6.01,6.01,6.01,0,0,0,0,0,6.01] x13 = [0,0,0,0,0,6.01,6.01,6.01,6.01,6.01,0,0,0,0,0,6.01,6.01,6.01,6.01,6.01,0,0,0,0,0,6.01,6.01,6.01,6.01,6.01,0] #大小夜班 d = [4.02,4.02,4.02,6.02,6.02,6.02,0,0,0,4.02,4.02,4.02,6.02,6.02,6.02,0,0,0,4.02,4.02,4.02,6.02,6.02,6.02,0,0,0,4.02,4.02,4.02,6.02] e = [6.02,6.02,6.02,0,0,0,4.02,4.02,4.02,6.02,6.02,6.02,0,0,0,4.02,4.02,4.02,6.02,6.02,6.02,0,0,0,4.02,4.02,4.02,6.02,6.02,6.02,0] h = [0,0,0,4.02,4.02,4.02,6.02,6.02,6.02,0,0,0,4.02,4.02,4.02,6.02,6.02,6.02,0,0,0,4.02,4.02,4.02,6.02,6.02,6.02,0,0,0,4.02] b = [4.02,4.02,4.02,6.02,6.02,6.02,0,0,0,4.02,4.02,4.02,6.02,6.02,6.02,0,0,0,4.02,4.02,4.02,6.02,6.02,6.02,0,0,0,4.02,4.02,4.02,6.02] l = [6.02,6.02,6.02,0,0,0,4.02,4.02,4.02,6.02,6.02,6.02,0,0,0,4.02,4.02,4.02,6.02,6.02,6.02,0,0,0,4.02,4.02,4.02,6.02,6.02,6.02,0] m = [0,0,0,4.02,4.02,4.02,6.02,6.02,6.02,0,0,0,4.02,4.02,4.02,6.02,6.02,6.02,0,0,0,4.02,4.02,4.02,6.02,6.02,6.02,0,0,0,4.02] def extend_shift_day(number, setting_array): month = setting_array * 10 month = month[number:]+month[:number] return month[0:day_in_month] d = extend_shift_day(0 + shift_night_day, night_cycle) e = extend_shift_day(3 + shift_night_day, night_cycle) h = extend_shift_day(6 + shift_night_day, night_cycle) b = extend_shift_day(0 + shift_night_day, night_cycle) l = extend_shift_day(3 + shift_night_day, night_cycle) m = extend_shift_day(6 + shift_night_day, night_cycle) x10 = extend_shift_day(0 + shift_sp_day, sp1_cycle) x11 = extend_shift_day(5 + shift_sp_day, sp1_cycle) x12 = extend_shift_day(0 + shift_sp_day, sp2_cycle) x13 = extend_shift_day(5 + shift_sp_day, sp2_cycle) ```