码迷,mamicode.com
首页 >  
搜索关键字:partition by range    ( 12244个结果
高斯核函数的代码体现
直观理解高斯核函数 import numpy as np import matplotlib.pyplot as plt x = np.arange(-4, 5, 1) x # array([-4, -3, -2, -1, 0, 1, 2, 3, 4]) y = np.array((x >= -2) ...
分类:其他好文   时间:2021-02-01 12:54:14    阅读次数:0
[Flutter Error]The following RangeError was thrown building KeyedSubtree-[<0>]: RangeError (index): Invalid value: Valid value range is empty: 0
错误: The following RangeError was thrown building KeyedSubtree-[<0>]: RangeError (index): Invalid value: Valid value range is empty: 0 原因: 运行时还没获取到数据,就 ...
分类:Windows程序   时间:2021-02-01 12:25:15    阅读次数:0
range()函数的使用、while循环、for-in循环等
一、range()函数 用于直接生成一个整数序列 创建range对象的三种方式: (1)range(stop) 创建一个(0,stop)之间的整数序列,步长为1 (2)range(start,stop) 创建一个(start,stop)之间的整数序列,步长为1 (3)range(start,stop ...
分类:其他好文   时间:2021-01-28 12:10:19    阅读次数:0
Python练习
9*9乘法表 for i in range(1,10): for j in range(1,i+1): print(f"{i}*{j}={i*j}",end=" ")#print默认换行,以end为结尾 print() 三角形 for i in range(1,10): if i<=5: print ...
分类:编程语言   时间:2021-01-27 13:26:14    阅读次数:0
一张包含所有颜色的图片
图片: 使用pygame编写的代码源代码: import pygame pygame.init() canvas=pygame.Surface((4096,4096)) rgb=[0,0,0] x_y=[0,0] for r in range(256): rgb[2]=0 rgb[1]=0 for ...
分类:其他好文   时间:2021-01-27 13:07:13    阅读次数:0
第五课--函数的定义与使用
函数理论部分: 1.函数的定义: 2.函数的调用: def Function(n) : # 计算阶乘 sum = 1 for i in range(1,n + 1) : sum *= i return sum print(Function(10)) 3.函数的参数传递: # 函数可以没有参数,但必须 ...
分类:其他好文   时间:2021-01-27 12:55:15    阅读次数:0
两个协程交替打印
题记: 请使用两个协程交替输出AaBbCcDdEeFf.....,要求协程1只能输出ABC......,协程2只能输出abc..... 自己实现了个代码,测试没问题,不知道是不是最优 代码如下: package main import ( "fmt" "sync" "time" ) //两个goro ...
分类:其他好文   时间:2021-01-26 12:33:35    阅读次数:0
Spark面试常见问题(一)--RDD基础
1 RDD基础知识 1.1 Spark的RDD五大特性 1.1.1 A list of partitions RDD是一个由多个partition(某个节点里的某一片连续的数据)组成的的List;将数据加载为RDD时,一般一个hdfs里的block会加载为一个partition。 对于RDD来说,每 ...
分类:其他好文   时间:2021-01-25 11:30:09    阅读次数:0
sql分组排序row_number() over()
sql分组排序函数 row_number() over(partition by 分组列 order by 排序列 desc) select tmp.pk_order from(select pk_order, row_number() over(partition by vbillcode ord ...
分类:数据库   时间:2021-01-22 12:30:09    阅读次数:0
Python使用random.shuffle()随机打乱字典排序
###示例.1 import random from random import shuffle x = [[i] for i in range(10)] shuffle(x) print(x) 运行结果: [[1], [2], [5], [0], [7], [9], [3], [8], [4], ...
分类:编程语言   时间:2021-01-21 10:36:13    阅读次数:0
12244条   上一页 1 ... 17 18 19 20 21 ... 1225 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!