上一页 1 2 3 4 5 6 7 8 9 ··· 21 下一页
摘要: http://benalexkeen.com/correlation-in-python/ Correlation in Python Correlation values range between -1 and 1. There are two key components of a corre 阅读全文
posted @ 2019-03-19 15:21 andy_0212 阅读(573) 评论(0) 推荐(0) 编辑
摘要: https://en.wikipedia.org/wiki/Sobol_sequence https://medium.com/@antoine_savine/sobol-sequence-explained-188f422b246b https://medium.com/@antoine_savi 阅读全文
posted @ 2019-03-19 14:20 andy_0212 阅读(434) 评论(0) 推荐(0) 编辑
摘要: 智力,毅力: 智力就是你聪不聪明,毅力就是一件事没做好要有长年累月的决心一定要把它做好为止,这就叫毅力。 毅力和智力是相辅相成的,没有人天生就一辈子都聪明,小时候聪明但是没有毅力不努力也就小时了了,只有有毅力的人可以把自己变得越来越聪明”。 朋友,助力: 小孩长大后就要自己讨生活混社会,做人在先做事 阅读全文
posted @ 2019-03-19 08:46 andy_0212 阅读(1913) 评论(0) 推荐(0) 编辑
摘要: 1、产生n个全为1的数组a=[1]*n2、字符数字转化int('12')float('12.5')str(123.45)ASCII码转为相应的字符:chr(97)字符转化为相应的ASCII码:ord('a')3、三元运算b = 100a = 10 if b>0 else 5 #a = 10a = 1 阅读全文
posted @ 2019-03-14 09:06 andy_0212 阅读(5153) 评论(0) 推荐(0) 编辑
摘要: first index: verts.index(value) last index: len(verts)-1-verts[::-1].index(value) 阅读全文
posted @ 2019-02-28 10:19 andy_0212 阅读(195) 评论(0) 推荐(0) 编辑
摘要: int(x [,base ]) 将x转换为一个整数 long(x [,base ]) 将x转换为一个长整数 float(x ) 将x转换到一个浮点数 complex(real [,imag ]) 创建一个复数 str(x ) 将对象 x 转换为字符串 repr(x ) 将对象 x 转换为表达式字符串 阅读全文
posted @ 2019-02-27 20:32 andy_0212 阅读(5757) 评论(0) 推荐(1) 编辑
摘要: 多数投票算法(Boyer-Moore Algorithm)详解写在前面:我在刷LeetCode 169 时碰到了这个问题,并且在评论区找到了这个方法,不过我发现CSDN上对其进行解读的博客大多停留在知其然而不知其所以然的层面,所以准备在此做一个较为详细的解读,重点在于介绍其原理。 问题描述给定一个无 阅读全文
posted @ 2019-02-22 22:01 andy_0212 阅读(1828) 评论(0) 推荐(0) 编辑
摘要: https://stackoverflow.com/questions/68645/are-static-class-variables-possible Variables declared inside the class definition, but not inside a method 阅读全文
posted @ 2019-02-12 10:33 andy_0212 阅读(127) 评论(0) 推荐(0) 编辑
摘要: 交换a,b两值的方法: a = a^b; b = a^b; a = a^b; b = a ^ b = (a^b)^b=a^b^b=a^(b^b)=a^0=a,这样就成功的实现了b = a;接着又用a = a^b = (a^b)^b(第一个b还是原来的b,而第二个b已经是a的值,因为前面已经实现了交换 阅读全文
posted @ 2019-01-29 14:17 andy_0212 阅读(3355) 评论(0) 推荐(0) 编辑
摘要: 在刷题过程中,发现Python有一个和其他语言完全不一样的地方,就是对负数的二进制表示。Python里的数是无所谓Overflow的,即没有位数限制,因此也就无所谓补码,因为补码都是相对于位数来说的,32位补码和16位补码,肯定是不一样的。但是这样就导致了一个问题,就是无法直接得到32位二进制补码。 阅读全文
posted @ 2019-01-26 17:02 andy_0212 阅读(1115) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 21 下一页