def QA_util_get_1st_of_next_month(dt):
    """
    获取下个月第一天的日期
    :return: 返回日期
    """
    year = dt.year
    month = dt.month
    if month == 12:
        month = 1
        year += 1
    else:
        month += 1
    res = datetime.datetime(year, month, 1)
    return res
def QA_util_get_1st_of_next_month ( dt ) : year = dt . year month = dt . month if month == 12 : month = 1 year += 1 else : month += 1 res = datetime . datetime ( year , month , 1 ) return res
获取下个月第一天的日期
    :return: 返回日期