11 2019 档案
摘要:在循环语句中画出多个subplot图像代码如下 http://jonathansoma.com/lede/data-studio/classes/small-multiples/long-explanation-of-using-plt-subplots-to-create-small-multip
阅读全文
摘要:目录: 1. 找到字符串中的所有数字(python find digits in string) 2. python 生成连续的浮点数(如 0.1, 0.2, 0.3, 0.4, ... , 0.9)(python range() for floats) 3. 判断两个矩形重叠程度 (python
阅读全文
摘要:目录: 1. python 相加字典所有的键值 (python sum all values in dictionary) 2. python 两个列表分别组成字典的键和值 (python two list serve as key and value for dictionary) 3. pyth
阅读全文
摘要:目录: 1. 嵌套列表对应位置元素相加 (add the corresponding elements of nested list) 2. 多个列表对应位置相加(add the corresponding elements of several lists) 3. 列表中嵌套元组对应位置相加 (p
阅读全文
摘要:目录: 1. 数组每一行除以这一行的总数(numpy divide row by row sum) 2. 数组每一行或者每一列求平均 (python average array columns or rows) 3. 数组每一行或者每一列求加权平均 (python weight average ar
阅读全文