*内置函数(了解) 一、数学函数 ROUND(x,y) 返回参数x的四舍五入的有y位小数的值 RAND() 返回0到1内的随机值,可以通过提供一个参数(种子)使RAND()随机数生成器生成一个指定的值。 二、聚合函数(常用于GROUP BY从句的SELECT查询中) AVG(col)返回指定列的平均 ...
分类:
数据库 时间:
2020-05-10 12:31:49
阅读次数:
82
ES6/ES7/ES8常用特性和新特性 ES6 ES6在ES5的基础上新增了一系列特性,这里仅列出常用特性 变量的改变,添加了块级作用域的概念 let声明变量(块级作用域),let是更完美的var,它声明的全局变量不是全局属性widow的变量,这便解决了for循环中变量覆盖的问题 const声明常量 ...
分类:
其他好文 时间:
2020-05-10 11:00:30
阅读次数:
55
// 全局JS // wow = new WOW( // { // animateClass: 'animated', // offset: 100, // callback: function (box) { // console.log("WOW: animating <" + box.tagN ...
分类:
其他好文 时间:
2020-05-10 09:13:46
阅读次数:
73
存储类别,链接和内存管理 关键字:auto、extern、static、register、const、volatile、restricted、 _Thread_local、_Atomic 函数:rand()、srand()、time()、malloc()、calloc()、free() 如何确定变量 ...
分类:
编程语言 时间:
2020-05-09 17:30:04
阅读次数:
83
展开在机器学习和神经网络中,常常会利用Numpy库中的随机函数来生产随机数,比如随机初始化神经网络中的参数权重W(备注:W是不能全部初始化为0的,这样会引起symmetry breaking problem,这样隐藏层设置多个神经元就没有任何意义了)。在Numpy库中,常用使用np.random.r ...
分类:
其他好文 时间:
2020-05-09 00:47:56
阅读次数:
92
Given a stack which can keep M numbers at most. Push N numbers in the order of 1, 2, 3, ..., N and pop randomly. You are supposed to tell if a given s ...
分类:
其他好文 时间:
2020-05-08 18:36:48
阅读次数:
75
import random from PIL import Image,ImageDraw, ImageFont, ImageFilter def check_code(width=120, height=30, char_length=5, font_file='Monaco.ttf', font ...
分类:
其他好文 时间:
2020-05-08 16:38:19
阅读次数:
70
import numpy as np x = np.array((1,2,3,4,5)) # 使用 * 进行相乘 x*2 # array([ 2, 4, 6, 8, 10]) # 使用 / 进行相除 x / 2 # array([0.5, 1. , 1.5, 2. , 2.5]) 2 / x # a ...
分类:
编程语言 时间:
2020-05-07 20:06:08
阅读次数:
69
import numpy as np # 将 0~100 10等分 x = np.arange(0,100,10) # array([ 0, 10, 20, 30, 40, 50, 60, 70, 80, 90]) # 每个数组元素对应的正弦值 np.sin(x) ''' array([ 0. , ...
分类:
编程语言 时间:
2020-05-07 20:03:39
阅读次数:
78
import pandas as pd import numpy as np # 读取全部数据,使用默认索引 data = pd.read_excel(r'C:\Users\lenovo\Desktop\总结\Python\超市营业额.xlsx') # 修改异常值 data.loc[data.交易额 ...
分类:
其他好文 时间:
2020-05-07 19:41:58
阅读次数:
262