我的程序工作正常,但我无法适应代码重复。 data = models.DateField() # complete datetime field from 2019->2022 valor_da_operacao = models.DecimalField(max_digits=19, decimal_places=2) # decimal field
# get all o
= int(get_month(fn)) if ((mes == 1 or mes == 2 or mes == 11 or mes == 12 and 6 < hora <18) or
(mes == 3 and dia < 17 and 6 < hora < 18) or (mes == 3 and dia == 17 and 6 <= hora <18) or(mes == 3 a