摘要:
###泛型不协变数组是协变的,即如果Integer是Number的子类型,则Integer[]也是Number[]的子类型```javaInteger[] is = new Integer[] {1, 2, 3};Number[] ns = is;ns[0] = new Integer(0);ns[... 阅读全文
摘要:
用于绘制一些数据图,同学推荐的,挺好用。非常好的官网文档:http://matplotlib.org/contents.html0. 安装可以直接pip install,还有一些依赖就按照提示来吧,具体也忘了。1. 基本画图import matplotlib.pyplot as pltxs = [1... 阅读全文
摘要:
Givennpoints on a 2D plane, find the maximum number of points that lie on the same straight line.强行解:inline bool valueSame(double a, double b) { re... 阅读全文