SET GLOBAL log_bin_trust_function_creators = 1; DELIMITER $$ CREATE FUNCTION pro_salary_grade( salary INT) RETURNS CHAR BEGIN DECLARE grade CHAR DEFAU ...
分类:
数据库 时间:
2020-04-06 15:49:34
阅读次数:
2137
from math import log import operator """ 函数说明:计算给定数据集的经验熵(香农熵) Parameters: dataSet:数据集 Returns: shannonEnt:经验熵 Modify: 2018-03-12 """ def calcShannonE ...
分类:
其他好文 时间:
2020-04-03 12:24:45
阅读次数:
81
CREATE FUNCTION getDistance (latl FLOAT, lonl FLOAT, lat2 FLOAT, lon2 FLOAT)RETURNS FLOATDETERMINISTIC RETURN ROUND(6378.138 * 2 * ASIN(SQRT(PON(SIN(( ...
分类:
数据库 时间:
2020-04-02 01:07:12
阅读次数:
85
/** * @param {number} date * @param {string} fmt * @returns {string} */ export function formatDate(date, fmt) { if (/(y+)/.test(fmt)) { fmt = fmt.repl ...
分类:
Web程序 时间:
2020-04-01 16:30:04
阅读次数:
87
703. Kth Largest Element in a Stream & c++ priority_queue & minHeap/maxHeap 相关链接 "leetcode" "c++ priority_queue cplusplus" "c++ priority_queue cnblog" ...
分类:
编程语言 时间:
2020-04-01 10:54:46
阅读次数:
71
根据节点查询所有子节点 CREATE DEFINER=`root`@`localhost` FUNCTION `getChildList`(rootId varchar(100)) RETURNS varchar(2000) CHARSET latin1 BEGIN DECLARE str varc ...
分类:
数据库 时间:
2020-03-31 12:44:32
阅读次数:
289
1. eval() : the eval function evaluates the “String” like a python expression and returns the result as an integer Syntax: eval(expression, [globals[, ...
分类:
编程语言 时间:
2020-03-30 23:10:12
阅读次数:
84
ini.remove_option Remove a key/value pair from a section in an ini file. Returns the value of the removed key, or if nothing was removed. API Example: ...
分类:
其他好文 时间:
2020-03-28 21:46:58
阅读次数:
70
introspect.service_highstate Return running and enabled services in a highstate structure. By default also returns package dependencies for those serv ...
分类:
其他好文 时间:
2020-03-28 21:36:42
阅读次数:
92