码迷,mamicode.com
首页 >  
搜索关键字:recent    ( 1003个结果)
断言的使用
>>> x = 1 >>> y = 2 >>> assert x == y, "not equals" Traceback (most recent call last): File "", line 1, in assert x == y, "not equals" AssertionError:... ...
分类:其他好文   时间:2018-08-27 10:24:47    阅读次数:119
pipelinedb 滑动窗口
滑动窗口可以方便的让我们进行一段时间的数据分析 几个主要函数 clock_timestamp 内置的函数,总是返回当前的时间戳 arrival_timestamp 事件达到的时间 单滑动窗口 参考 CREATE CONTINUOUS VIEW recent_users WITH (sw = '1 m ...
分类:数据库   时间:2018-08-26 23:42:22    阅读次数:284
Ubuntu中使用pip3报错
使用pip3 出现以下错误: Traceback (most recent call last): File “/usr/bin/pip3”, line 9, in from pip import main 找到 pip3的执行文件 cd /usr/bin/pip3 原代码: 修改: 保存后再升级p ...
分类:系统相关   时间:2018-08-25 00:37:27    阅读次数:714
集合里面嵌套列表,会报错却是可变的
>>> s = (1,2,3,[2,3])>>> s(1, 2, 3, [2, 3])>>> s[3] + [5,6][2, 3, 5, 6]>>> s[3] += [5,6]Traceback (most recent call last): File "<stdin>", line 1, in ...
分类:其他好文   时间:2018-08-24 22:52:46    阅读次数:213
poj-2386 lake counting(搜索题)
Time limit1000 ms Memory limit65536 kB Due to recent rains, water has pooled in various places in Farmer John's field, which is represented by a recta ...
分类:其他好文   时间:2018-08-19 00:55:34    阅读次数:162
python--函数之递归与二分法
一.递归 1.递归的定义:在函数中调用函数本身,就是递归. 在python中,递归的最大深度是1000,但是不会到1000,在这之前就会给你报错. 遍历D:/sylar文件夹,打印出所有的文件盒普通文件的文件名 二.二分法 定义:二分查找,每次能够排除掉一半的数据,查找的效率很高,但是必须是有序序列 ...
分类:编程语言   时间:2018-08-15 20:32:46    阅读次数:152
poj 2386 Lake Counting(BFS解法)
Lake Counting Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 45142 Accepted: 22306 Description Due to recent rains, water has pooled in va ...
分类:其他好文   时间:2018-08-14 19:53:41    阅读次数:119
django+xadmin+echarts实现数据可视化
使用xadmin后功能比较强大,在后台展示统计图表,这个需求真的有点烫手,最终实现效果如下图: xadmin后台与echarts完全融合遇到以下问题: 1.没有现成的数据model 2.获得指定时间段的数据 3.添加自定义菜单 4.图表不能在当前页展示(后台点击每个model都是内嵌在当前页) 5. ...
分类:其他好文   时间:2018-08-13 18:03:55    阅读次数:3853
cannot import name 'main' 解决方案
error description: You must have inadvertently upgraded your system pip (probably through something like sudo pip install pip --upgrade) pip 10.x adju ...
分类:其他好文   时间:2018-08-07 13:58:17    阅读次数:146
tensorflow 模型不兼容
``` [ERROR] [1533570199.196157]: bad callback: > Traceback (most recent call last): File "/opt/ros/kinetic/lib/python2.7/dist-packages/rospy/topics.py... ...
分类:其他好文   时间:2018-08-07 01:31:07    阅读次数:1543
共1003条   上一页 1 ... 30 31 32 33 34 ... 101 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!