1、剃须刀模板razor的使用 1)混编 循环语法 @model List<MVCStudy.Models.Student> @{ ViewBag.Title = "List"; } <h2>List</h2> <!--循环遍历数组内容 c#与HTML混编--> <ul> @foreach (var ...
分类:
Web程序 时间:
2020-02-18 12:53:45
阅读次数:
101
1.CONCAT()2.CONCAT_WS()3.GROUP_CONCAT()为了方便下面举例,这里放个student表供下面使用 s_id s_name s_sex 01 张三 男 02 李四 男 03 王五 男 04 赵六 null 一、CONCAT() :最常用的字符串拼接方法,但遇到拼接中的 ...
分类:
数据库 时间:
2020-02-17 13:58:50
阅读次数:
92
在一个Java文件中写两个类:一个基本的类,一个测试类。注意:文件名称和测试类名称一致。 如何使用呢?创建对象使用。如何创建对象呢?格式:类名 对象名 = new 类名(); Student s = new Student(); //创建对象如何使用成员变量呢?对象名。变量名s.age = 27;S ...
分类:
编程语言 时间:
2020-02-16 20:49:22
阅读次数:
85
集合的嵌套遍历 获取10个1-20之间的随机数,要求不能重复 键盘录入多个数据,以0结束,要求在控制台输出这多个数据的最大值。public static void main(String[] args){ //创建大集合 ArrayList<ArrayList<Student>> bigArrayL ...
分类:
编程语言 时间:
2020-02-16 20:16:08
阅读次数:
86
#include <stdio.h>#include <string.h>#include <malloc.h> #define NULL 0#define LEN sizeof(struct student) struct student{long num;float score; //char ...
分类:
编程语言 时间:
2020-02-16 12:40:13
阅读次数:
80
上一次我给大家讲解了装饰器,它能让函数在不做更多变动的情况下增加某些额外的功能 而今天我们来了解一下python中几个内置的装饰器 通常我们写代码的时候,都不希望外部代码能够轻易地修改内部属性的参数 因为要在外部改变参数的时候,我们必须想办法通过内部函数去检验参数的正确性,以确保设置正确 但是我们不 ...
分类:
编程语言 时间:
2020-02-15 23:27:07
阅读次数:
95
水题。 #include"iostream" #include"algorithm" using namespace std; struct Student { string name,id; int score; }; int main() { int n; cin>>n; Student max ...
分类:
其他好文 时间:
2020-02-15 18:37:35
阅读次数:
56
create table student( id int, name char(6), born_year year, birth_date date, class_time time, reg_time datetime ); insert into student values (1,'eddi ...
分类:
其他好文 时间:
2020-02-15 15:47:39
阅读次数:
118
名词模块_人的职业 |人的职业|释义| | | | |teacher|教师| |student|学生| |doctor|医生| |nurse|护士| |scientist|科学家| |engineer|工程师| |boss|老板,上司| |clerk|职员| |manager|经理| |busine ...
分类:
其他好文 时间:
2020-02-15 15:28:20
阅读次数:
61
#include <stdio.h> #include <stdlib.h> #include <string.h> //#define LEN sizeof(LinkedList); typedef struct Student{ int score; char name[10]; struct ...
分类:
编程语言 时间:
2020-02-15 15:15:57
阅读次数:
70