02 2019 档案

摘要:first index: verts.index(value) last index: len(verts)-1-verts[::-1].index(value) 阅读全文
posted @ 2019-02-28 10:19 andy_0212 阅读(202) 评论(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 阅读(5782) 评论(0) 推荐(1)
摘要:多数投票算法(Boyer-Moore Algorithm)详解写在前面:我在刷LeetCode 169 时碰到了这个问题,并且在评论区找到了这个方法,不过我发现CSDN上对其进行解读的博客大多停留在知其然而不知其所以然的层面,所以准备在此做一个较为详细的解读,重点在于介绍其原理。 问题描述给定一个无 阅读全文
posted @ 2019-02-22 22:01 andy_0212 阅读(2135) 评论(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 阅读(133) 评论(0) 推荐(0)