np.ceil(多维数组):对多维数组的各个数向上取整 np.floor(多维数组):对多维数组的各个数向下取整 np.expand_dims(x,axis = 0):在x的第一维度上插入一个维度,axis=1,在x的第二个维度上插入一个维度 例如: x = np.array([[1,2,3],[4 ...
分类:
其他好文 时间:
2019-12-18 16:20:49
阅读次数:
99
Choosetwo.Whichtwostatementsaretrueaboutsinglerowfunctions?A)CONCAT:canbeusedtocombineanynumberofvaluesB)MOD:returnsthequotientofadivisionoperationC)CEIL:canbeusedforpositiveandnegativenumbersD)FLOOR:
分类:
其他好文 时间:
2019-12-16 16:18:05
阅读次数:
115
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title></title> <style type="text/css"> body { margin: 0; padding: 0; } #game { width: ...
分类:
移动开发 时间:
2019-12-16 10:05:29
阅读次数:
108
好难,没几个月就忘记了 javascript function solveSudoku(board) { var result = [] function backtrack(x, y) { if (x == 9) { //打印所有 board.forEach(function (row) { r ...
分类:
其他好文 时间:
2019-12-15 16:48:39
阅读次数:
113
Math对象 开平方:sqrt 绝对值:abs π:PI x的y次方:pow 四舍五入取整:round 向下取整:floor 向上取整:ceil 最大值:max 最小值: min 随机数:random 日期对象 获取当前时间:Date() 获取年:getFullYear 获取月:getMonth 获 ...
分类:
Web程序 时间:
2019-12-13 19:15:49
阅读次数:
127
地址 http://poj.org/problem?id=1064 题解 二分即可 其实 对于输入与精度计算不是很在行 老是被卡精度 后来学习了一个函数 floor 向负无穷取整 才能ac 代码如下 1 #include <iostream> 2 #include <vector> 3 #inclu ...
分类:
其他好文 时间:
2019-12-12 13:26:20
阅读次数:
88
select dbms_random.value(1,9999) from dual; --四位数,取整 select trunc(dbms_random.value(1000,9999)) from dual; --按照指定的精度截取一个数 select round(dbms_random.val ...
分类:
数据库 时间:
2019-12-12 13:25:54
阅读次数:
140
项目地址 GitHub预览地址:https://lightbc.github.io/countdown/ GitHub下载地址:https://github.com/lightbc/countdown.git HTML代码 <!DOCTYPE html> <html> <head> <meta ch ...
分类:
其他好文 时间:
2019-12-09 21:31:50
阅读次数:
153
对于任意正整数k, 设函数$f(x)=floor(k/x) , x \in [1,k]$, 则此函数图像的特点是:由多个连续的段组成,每段的函数值都一样,函数值在定义域内单调不增。 给定任意段的左端点x, 其右端点是: $floor(k/floor(k/x))$ 认识到此规律是由于一道叫做余数之和的 ...
分类:
其他好文 时间:
2019-12-08 22:39:54
阅读次数:
77
题意:https://www.luogu.com.cn/problem/P3195 思路:https://www.luogu.com.cn/problemnew/solution/P3195 1 #define IOS ios_base::sync_with_stdio(0); cin.tie(0) ...
分类:
其他好文 时间:
2019-12-08 12:13:08
阅读次数:
99