ICode9

精准搜索请尝试: 精确搜索
  • SpringMVC的类型转换器与RESTFUL集成2022-06-23 21:32:14

    pring Mvc自定义的数据类型转换器: 一:Date 1.创建DateConverter 类,并实现Converter接口:需要指定泛型<S,T> package com.southwind.converter; import lombok.SneakyThrows; import org.springframework.core.convert.converter.Converter; import java.text.ParseException; impo

  • 课程模块之-课程分类群查、课程群查接口2022-06-13 22:04:28

    一、课程分类群查接口 路由层 course/urls.py from django.urls import path, re_path, include from . import views from rest_framework.routers import SimpleRouter router = SimpleRouter() router.register('categories',views.CourseCategoryView,'categories'

  • sql - case语句和if函数2022-06-11 20:00:11

    为什么会有本文? 问题:需要从成绩表里面获取成绩单(排名,单科成绩,总分) 处理:按名称分组,SUM聚合运算获取总分,单科成绩需要给定条件来筛选,包含分组语句筛选(case语句或if函数)的字段必须为分组字段或聚合字段,所以单科成绩还需要使用聚合函数(如SUM)包裹一层; 优点:通过,分组+聚合+筛选,实现,列形式

  • Apollo自动驾驶虚拟仿真赛笔记[4]-解题思路分析(未完待续)2022-06-03 02:32:41

    题目分析 场景1:人行道避让(详见笔记[3]) 场景描述: 主车向前行驶,前方遇到有人通过人行道,主车需要停止在人行道前 5m~ 5.5m 内停车。 评分标准: 主车未停止在人行道前 5~5.5m 外,本场景分扣 20 分,若未避让 行人或超出停止线停车,本场景计 0 分。 思路分析 场景2:障碍物绕行 场景描述: 主

  • 微信小程序开发日常2022-05-31 13:33:37

    课程:https://time.geekbang.org/course/intro/100052401 kbnoe 多端统一开发工具 官网: https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/extended/kbone/

  • get()、get_or_create()、first()、last()、latest()、earliest()、in_bulk()2022-05-30 17:00:52

    get() 查询、 get_or_create() 不存在时更新、存在时查询并返回、 first() 获取第一笔、 last() 获取最后一笔、   使用latest和earliest时需要在元数据(meta)中添加get_latest_by="created_at",其中created_at为时间列,根据时间来排序 latest() 最早记录、 earliest() 最近记录、 i

  • writing about graphs2022-05-23 12:35:46

    The bar chart illustrates the numbers of men and women attending various evening courses at an adult education center in the year 2009. And the pie chart shows the age distribution of the course participants. Overall, it can be seen that the most popular

  • 2022年上半年软考考前一周冲刺备考指导2022-05-21 13:33:53

      现在距离2022年上半年软考考试已不足一周时间,大家复习的怎样呢?为了帮助大家顺利通过考试,小编特地为大家准备了考前一周冲刺备考指导,正在备考软考考试的伙伴们千万不要错过哦。   2022年上半年软考职称考试时间为5月28日,在备考的过程中,你是否也遇到了这些问题:   1、不了解

  • 【Sharding JDBC】分库分表小demo2022-05-18 08:01:33

    引入依赖 <!-- 数据库连接池 --> <dependency> <groupId>com.alibaba</groupId> <artifactId>druid-spring-boot-starter</artifactId> <version>1.1.20</version> </dependency> <!-- 数据库连接驱动--> <

  • LeetCode 207 Course Schedule 拓扑排序BFS2022-05-18 03:31:28

    There are a total of numCourses courses you have to take, labeled from 0 to numCourses - 1. You are given an array prerequisites where prerequisites[i] = [ai, bi] indicates that you must take course bi first if you want to take course ai. For example, the

  • 210. 课程表 II(拓扑排序)2022-05-15 01:00:55

    210. 课程表 II 现在你总共有 numCourses 门课需要选,记为 0 到 numCourses - 1。给你一个数组 prerequisites ,其中 prerequisites[i] = [ai, bi] ,表示在选修课程 ai 前 必须 先选修 bi 。 例如,想要学习课程 0 ,你需要先完成课程 1 ,我们用一个匹配来表示:[0,1

  • 03、课程接口2022-05-13 02:31:37

    1、课程分类接口 路由 # http://127.0.0.1:8000/api/v1/course/category/ from django.urls import path, include from rest_framework.routers import SimpleRouter from .views import CourseCategoryView router = SimpleRouter() router.register('category', Course

  • 01、前台课程页面搭建2022-05-11 21:35:48

    1、 前台课程页面搭建思路 思路:点击首页组件的(实战课、免费课、轻课),跳转进入三个不同的页面 前端新建三个vue页面:ActualCourse,FreeCourse,LightCourse(实战课、免费课、轻课) 2、 前台实战课页面搭建 views/ActualCourse <template> <div class="course"> <Heade

  • 前端课程页面、课程主页表分析创建、课程页面数据录入、课程分类接口、课程列表接口、课程页面前后端连通、课程详情页面2022-04-29 02:03:01

    今日内容概要 课程页面复制 课程主页表分析 课程页面数据录入 课程分类接口 课程列表接口 课程页面前后端调通 课程详情接口 课程详情页面 内容详细 1、课程页面 # 打开前端项目 luffycity: # 把前端代码复制到ActualCourse中即可 http://liuqingzheng.top/python/%E8%B7%AF%E

  • university sql脚本2022-04-24 12:03:12

    create table classroom (building varchar(15), room_number varchar(7), capacity numeric(4,0), primary key (building, room_number) ); create table department (dept_name varchar(20), building

  • mysql添加数据2022-04-20 12:31:55

    CREATE TABLE `student_info`( `id` INT(11) NOT NULL AUTO_INCREMENT, `student_id` INT NOT NULL, `name` VARCHAR(20) DEFAULT NULL, `course_id` INT NOT NULL, `class_id` INT(11) DEFAULT NULL, `create_time` DATETIME DEFAULT CURRENT_TIMEST

  • 数据库系统概念示例2022-04-16 02:01:32

      Windows PowerShell 版权所有(C) Microsoft Corporation。保留所有权利。 安装最新的 PowerShell,了解新功能和改进!https://aka.ms/PSWindows PS C:\Users\iyang> mysql -u root -p Enter password: ************ Welcome to the MySQL monitor. Commands end with ; or \g. Y

  • 工厂设计模式2022-03-19 23:33:40

    简单工厂模式和抽象工厂模式 package DesignPattern; /** * 工厂模式 */ public class Test02 { /** * 简单的工厂模式 */ // public static void main(String[] args) { // // EasyClassFactory getClass = new EasyClassFactory(); //

  • dls的区间dp2022-03-11 13:34:26

    区间dp ICPC Beijing 2017 J, Pangu and Stones 题目链接:http://oj.daimayuan.top/course/8/problem/327 题目大意:有n堆石子,每对有ai个,每次可以合并[L, R]堆石子,代价是这些石子的之和 f[l][r][k]:表示将l,r合并成k堆的最小代价 划分方式:根据最后一顿划分的分界线在哪里 f[l][

  • python入门学习篇三十三2022-03-06 20:01:59

    查询关键字之having过滤 功能上having与where是一模一样的 但是使用位置上有所不同 where在分组之前使用 having在分组之后使用 # 1.统计各部门年龄在30岁以上的员工平均工资,并且保留平均工资大于10000的部门 # 1.先筛选出所有30岁以上的员工 select * from emp wh

  • 42 搜索功能/3-搜索页面2022-03-02 21:04:02

    SearchCourse搜索页面 index.js import SearchView from "../views/SearchView"; { path: '/course/search', name: 'SearchView', component: SearchView } views/SearchView.vue (搜索页面) <template> <div

  • 43 搜索功能/2-搜索后台接口2022-03-02 21:03:17

    路由:course/urls.py router.register('coursesearch', views.SearchCourseViewSet, 'coursesearch') # 搜索课程 视图:course/views.py from rest_framework.viewsets import GenericViewSet from rest_framework.mixins import ListModelMixin from rest_fra

  • 设计原则之依赖倒置原则2022-03-02 18:00:07

    依赖倒置原则(Dependence Inversion Principle,DIP)是指设计代码结构时,高层模块不应该依 赖底层模块,二者都应该依赖其抽象。抽象不应该依赖细节;细节应该依赖抽象。通过依赖倒置,可以 减少类与类之间的耦合性,提高系统的稳定性,提高代码的可读性和可维护性,并能够降低修改程序所 造成的风

  • 34 课程模块——查询所有分类接口2022-03-01 20:04:08

     查询所有分类的接口 序列化类coursr/serializer.py from rest_framework import serializers from .models import CourseCategory class CategorySerializer(serializers.ModelSerializer): class Meta: model=CourseCategory fields=['id','name�

  • PAT-1039 Course List for Student2022-02-28 15:33:14

    1039 Course List for Student part 4, 4.0 自己解法 #include <iostream> using namespace std; #include <vector> #include <map> #include <algorithm> int main() { int N, K; cin >> N >> K; map<string, vector<

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有