Redis hash可储存多个键值对,适合储存对象的属性。 1、hset key fieldName fileValue //hset即hash set,set这里是设置的意思。往hash中添加一个字段(键值对) 示例: hset score zhangsan 90 //score是hash的名称, ...
分类:
其他好文 时间:
2019-06-24 16:51:02
阅读次数:
83
2 比较1-3与1-4的编程语句 1-3写入文件的操作: // 将排序后的数组st中数据输出到屏幕,同时,也写入文件file3.dat for(i=0; i<N; i++) { printf("%-6d%-10s%3d\n", st[i].num, st[i].name, st[i].score); ...
分类:
其他好文 时间:
2019-06-24 00:20:49
阅读次数:
64
--修改表名alter table student rename teacher--修改数据类型alter table student modify column score int--修改列名和数据类型alter table student change column name sname var ...
分类:
其他好文 时间:
2019-06-23 17:22:47
阅读次数:
84
在绑定属性时,如果我们直接把属性暴露出去,虽然写起来很简单,但是,没办法检查参数,导致可以把成绩随便改 s = Student() s.score = 9999 为了限制score的范围,可以通过一个set_score()方法来设置成绩,再通过一个get_score()来获取成绩,这样在set_sc ...
分类:
其他好文 时间:
2019-06-21 18:44:04
阅读次数:
107
1.装饰器 一般以@开头,后面紧跟着一个函数,例如flask中的url设置就是一种装饰器 2.getter与setter 这里用代码来解释 第一个@property将score变成了一个getter,同时允许创建@score.setter 如果不创建@score.setter则该属性将变成只读 虽然 ...
分类:
编程语言 时间:
2019-06-20 20:03:23
阅读次数:
130
F1 score,micro F1score,macro F1score 的定义 2018年09月28日 19:30:08 wanglei_1996 阅读数 976 F1 score,micro F1score,macro F1score 的定义 2018年09月28日 19:30:08 wangl ...
分类:
系统相关 时间:
2019-06-16 20:17:29
阅读次数:
160
part 1ex 1 const int N=5; // 定义结构体类型struct student,并定义STU为其别名 typedef struct student { long no; char name[20]; int score; }STU; // 函数声明 void input(STU ...
分类:
其他好文 时间:
2019-06-11 00:58:54
阅读次数:
96
#include <stdio.h>#include<string.h>#include<stdlib.h> struct Student{ long num; float score; struct Student* next;};int n; struct Student* creat(void ...
分类:
其他好文 时间:
2019-06-09 09:48:24
阅读次数:
148
一,准备数据库数据表结构 CREATE TABLE `app` ( `id` int(11) NOT NULL AUTO_INCREMENT, `app_name` varchar(255) NOT NULL DEFAULT '', `score` decimal(10,5) NOT NULL DE ...
分类:
数据库 时间:
2019-06-09 09:41:38
阅读次数:
113
1.日期格式转换(将yyyymmdd转换为yyyy-mm-dd) 2..hive去掉字段中除字母和数字外的其它字符 3.hive解析json字段 content字段存储json {"score":"100","name":"zhou","class":''math"},若要对json进行解析,则可用 ...
分类:
其他好文 时间:
2019-06-06 18:43:42
阅读次数:
81