Python笔记
taste_cyn
这个作者很懒,什么都没留下…
展开
-
json自定义缩进,list不换行——python(满足强迫症患者需要)
copy from:https://stackoverflow.com/questions/13249415/how-to-implement-custom-indentation-when-pretty-printing-with-the-json-module效果:{ "35233655565131": [ { "path_p": ["OL13F1i6026j2690", "OL13F1i6028j2701"], "path_t": 123456789 }转载 2021-01-15 23:07:34 · 3561 阅读 · 1 评论 -
Python实现互联网笔试题-百度1、2
百度2017实习生-数据挖掘/机器学习编程题1、2原创 2017-04-29 22:19:59 · 1046 阅读 · 0 评论 -
Python实现互联网笔试题-今日头条-3个一组的试题
头条校招(今日头条2017秋招真题)原创 2017-05-04 21:13:30 · 1454 阅读 · 0 评论 -
Python实现互联网笔试题-百度-关于排序sorted()函数
选择价格第三便宜的帽子。sorted()函数。List中每个元素转换类型。原创 2017-05-01 22:56:18 · 441 阅读 · 0 评论 -
python numpy的一些常用操作
多种数据类型:datalist = np.array(datalist, dtype = object)按某一列排序:datalist = datalist[ datalist[:, sort_axis].argsort() ]array添加一列,一维array行转列:# list转array row = np.array(row) #行转列 col = row.r...原创 2018-11-20 11:25:05 · 501 阅读 · 0 评论 -
python list 分片
取倒数count个元素:list[:-count]原创 2019-01-02 14:35:55 · 304 阅读 · 0 评论 -
blender下使用conda环境 scipy numpy依赖冲突
在anaconda-navigator中手动创建的python3.5, 然后再用conda install numpyconda instal scipy安装,两个包的版本是自动适配环境的,并且用conda search scipy --info查看了numpy版本是符合依赖关系的。但是运行时报错:RuntimeError: module compiled against API v...原创 2019-05-10 13:31:38 · 1713 阅读 · 0 评论