MVC-即Model,View,Controller,三层架构模式。model作为领域模型,是维持应用状态,提供业务功能的领域模型;View-指UI层,用于和用户的交和页面的展示;而Controller则是定义具体了UI 逻辑功能。传统的MVC模式,并没有严格的定义,即Model层也可以直接返回给v ...
分类:
Web程序 时间:
2020-07-23 01:50:11
阅读次数:
92
numpy属性 ndim:维度 shape:行数和列数 size:元素个数 转化列表为矩阵: temp = np.array([[1, 2], [3, 4]]) 数据创建 array:创建数组 dtype:指定数据类型 zeros:创建数据均为0 ones:创建数据均为1 empty:创建数据均接近 ...
分类:
编程语言 时间:
2020-07-22 01:53:13
阅读次数:
86
1、左连接: var LeftJoin = from emp in ListOfEmployees join dept in ListOfDepartment on emp.DeptID equals dept.ID into JoinedEmpDept from dept in JoinedEmp ...
分类:
其他好文 时间:
2020-07-21 23:18:05
阅读次数:
103
原文链接:https://www.cnblogs.com/pinard/p/6221564.html 谱聚类(spectral clustering)是广泛使用的聚类算法,比起传统的K-Means算法,谱聚类对数据分布的适应性更强,聚类效果也很优秀,同时聚类的计算量也小很多,更加难能可贵的是实现起来 ...
分类:
其他好文 时间:
2020-07-20 13:26:41
阅读次数:
60
public static string GetJsonValue(string jsonStr, string key) { string result = string.Empty; if (!string.IsNullOrEmpty(jsonStr)) { key = "\"" + key.T ...
分类:
Web程序 时间:
2020-07-20 10:46:46
阅读次数:
89
empty — 检查一个变量是否为空 返回值当变量存在,并且是一个非空非零的值时返回 FALSE 否则返回 TRUE . 以下的东西被认为是空的返回 true: 1. "" (空字符串) 2. 0 (作为整数的0) 3. 0.0 (作为浮点数的0) 4. "0" (作为字符串的0) 5. NULL ...
分类:
Web程序 时间:
2020-07-19 16:27:40
阅读次数:
121
isset 检查一个变量是否为空 返回值:变量只要不是null 返回true,否则返回false 既:变量的值为 "" (空字符串), 0 (作为整数的0), 0.0 (作为浮点数的0), "0" (作为字符串的0), FALSE,array() (一个空数组) 不是null返回true 变量的值为 ...
分类:
Web程序 时间:
2020-07-19 16:25:59
阅读次数:
102
Basic Transformations in Edit Mode import bpy import bmesh # Must start in object mode # Script will fail if scene is empty bpy.ops.object.mode_set(mo ...
分类:
其他好文 时间:
2020-07-19 15:57:11
阅读次数:
75
转:https://www.jianshu.com/p/a605fab0ab11 # encoding: UTF-8 # 系统模块 from Queue import Queue, Empty from threading import * ############################# ...
分类:
编程语言 时间:
2020-07-18 15:44:17
阅读次数:
76
题目描述 找到给定字符串(由小写字符组成)中的最长子串 T , 要求 T 中的每一字符出现次数都不少于 k 。输出 T 的长度。 示例: 输入: s = "aaabb", k = 3 输出: 3 最长子串为 "aaa" ,其中 'a' 重复了 3 次。 题目链接: https://leetcode- ...
分类:
其他好文 时间:
2020-07-17 22:18:30
阅读次数:
64