02 2019 档案
摘要:first index: verts.index(value) last index: len(verts)-1-verts[::-1].index(value)
阅读全文
摘要:int(x [,base ]) 将x转换为一个整数 long(x [,base ]) 将x转换为一个长整数 float(x ) 将x转换到一个浮点数 complex(real [,imag ]) 创建一个复数 str(x ) 将对象 x 转换为字符串 repr(x ) 将对象 x 转换为表达式字符串
阅读全文
摘要:多数投票算法(Boyer-Moore Algorithm)详解写在前面:我在刷LeetCode 169 时碰到了这个问题,并且在评论区找到了这个方法,不过我发现CSDN上对其进行解读的博客大多停留在知其然而不知其所以然的层面,所以准备在此做一个较为详细的解读,重点在于介绍其原理。 问题描述给定一个无
阅读全文
摘要:https://stackoverflow.com/questions/68645/are-static-class-variables-possible Variables declared inside the class definition, but not inside a method
阅读全文

浙公网安备 33010602011771号