com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure The last packet sent successfully to the server was 0 milliseconds a ...
分类:
数据库 时间:
2020-02-04 11:05:13
阅读次数:
91
9-1 class Restaurant(): def __init__(self,restaurant_name,cuisine_type): self.restaurant_name = restaurant_name self.cuisine_type = cuisine_type def d ...
分类:
编程语言 时间:
2020-02-03 18:54:50
阅读次数:
76
一下代码的前提:import pandas as pd 1.1 缺失数据处理 缺失数据是数据分析中的常见现象。pandas使用浮点值NaN(Not a Number)表示浮点和非浮点数组中的缺失数据。它只是一个便于被检测出来的标记而已。python内置的None值也会被当作NA处理。 1 >>> s ...
分类:
系统相关 时间:
2020-02-03 18:42:24
阅读次数:
215
一下代码的前提:import pandas as p 缺失数据是数据分析中的常见现象。pandas使用浮点值NaN(Not a Number)表示浮点和非浮点数组中的缺失数据。它只是一个便于被检测出来的标记而已。python内置的None值也会被当作NA处理。 1 >>> string_data = ...
分类:
其他好文 时间:
2020-02-03 18:40:22
阅读次数:
70
C语言 浮点类型 浮点类型 在0的两侧有一小块区域,这个区域非常接近0,但是不等于0,是float(表达范围数量级10^ 38^)或者double(达范围数量级10^ 308^)无法表达的,而0是可以表达的;nan:不是一个有效的数字。有效数字:在有效数字范围是精确的,超出这个范围是不准确的。 %e ...
分类:
编程语言 时间:
2020-02-01 19:08:23
阅读次数:
147
使用vs2019,建立一个Android单一页面应用,直接生成APK的大小是67.9MB 项目属性里的Android选项,里边的链接器属性,有一项“链接”,VS的提示是: 项目默认的选项是“无”,我们把选项改成“仅SDK程序集”,再一次生成APK,大小是12.3MB ...
分类:
移动开发 时间:
2020-01-30 23:17:32
阅读次数:
99
"no-alert": 0,//禁止使用alert confirm prompt "no-array-constructor": 2,//禁止使用数组构造器 "no-bitwise": 0,//禁止使用按位运算符 "no-caller": 1,//禁止使用arguments.caller或argum ...
分类:
其他好文 时间:
2020-01-29 12:47:34
阅读次数:
102
方法一: 原始数据中有许多无值NaN,但直接用imagesc显示会变成最小的颜色,找了许久发现个最好的办法。 h=imagesc(C)set(h,'alphadata',~isnan(C)) %%%%%%方法二:其实也可以在colorbar 上直接修改,右键图片旁边的colorbar选择颜色图编辑器 ...
分类:
其他好文 时间:
2020-01-28 23:18:12
阅读次数:
233
JavaScript入门 JavaScript是什么 首先,JavaScript里面的Java是因为JavaScript的创造者在Sun公司工作,本来的LiveScript改名为JavaScript是一个双赢决策。JavaScript是一种运行在客户端(在用户设备运行,不运行在服务器)的脚本语言(高 ...
分类:
编程语言 时间:
2020-01-28 14:14:36
阅读次数:
83
一、类型 数值型有 num,int, double num a = 10; a = 12.5; print(a); print(a.runtimeType); int b = 20; // b = 20.5; print(b); print(b.runtimeType); double c = 10 ...
分类:
编程语言 时间:
2020-01-27 00:21:12
阅读次数:
85