
python
文章平均质量分 65
乔qiao
人生的意义在于成就
展开
-
python常用指令记录
os.walk参考【1】https://www.jianshu.com/p/bbad16822eab原创 2021-01-18 20:59:30 · 287 阅读 · 1 评论 -
python xml文件读写使用之xml.dom.minidom
XML文件读写xml结构xml和dom读取指定字符串写xml文件xml结构xml的结果性关系包括节点关系及属性内容xml的基本单位是元素,开始标记,属性,结束标记组成〈?xml version="1.0" encoding="gb2312" ?〉 〈参考资料〉 〈书籍〉 〈名称〉xml入门精解〈/名称〉 〈作者〉张三〈/作者〉 〈价格 货币单位="人民币"〉20.00〈/价格〉 〈/书籍〉 〈书籍〉 〈名称〉xml原创 2020-11-13 17:15:00 · 9858 阅读 · 0 评论 -
python谷歌开源风格项目指南
谷歌开源风格项目指南:https://zh-google-styleguide.readthedocs.io/en/latest/google-python-styleguide/python_style_rules/#comments原创 2020-11-13 12:53:25 · 174 阅读 · 0 评论 -
python logging使用记录
python logging使用记录logging简单使用logging简单使用import logginglogging.debug("This is a debug log.")logging.info("This is a info log.")logging.warning("This is a warning log.")logging.error("This is a error log.")logging.critical("This is a critical log.")原创 2020-11-09 17:44:42 · 118 阅读 · 0 评论 -
PCA与SVD学习之路
前言由于实验室课题中用到了PCA降维,而我之前对于pca的理解一直是不够深入。不能理解得分转换矩阵系数的大小和正负的意义。特征值的内在意义。所以现在仔细研究一下,以求对其有进一步的理解。 PCA(Principal Component Analysis)通过线性变化将原始数据变换为各维度线性无关的表示,可用于提取数据的主要特征向量,常用于数据的降维[1]。向量表示和投影我们知道,二维空间中的一点可转载 2017-09-20 12:34:44 · 360 阅读 · 0 评论 -
XGBOOST安装 Anaconda win10-64 python3
安装参考网址 http://www.th7.cn/system/win/201603/157092.shtml http://blog.youkuaiyun.com/ychanmy/article/details/50972530 http://xgboost.readthedocs.io/en/latest/build.html原创 2017-06-13 23:49:50 · 336 阅读 · 0 评论 -
pip安装whl文件及tensorflow安装
pip安装whl文件安装.whl文件,首先我们要用命令提示符在cmd下,进入.whl文件所在目录。指令为:指令为 pip install some.whltensorflow安装出现错误:ImportError: Missingrequired dependencies [‘numpy’] 解决方法:必须安装numpy+mkl,而不能是简单的numpy参考: http://blog.cs原创 2017-07-16 10:15:36 · 13724 阅读 · 0 评论 -
np.where函数
原文地址:https://stackoverflow.com/questions/23359886/selecting-rows-in-numpy-ndarray-based-on-the-value-of-two-columns?rq=1And here is the sample code. For simplicity I changed the size3600000 to 5.a =原创 2017-06-03 16:30:29 · 1972 阅读 · 0 评论 -
notepad++使用及配置C语言环境
使用技巧借鉴http://www.cnblogs.com/exmyth/archive/2013/04/16/3024158.html 使用注意:保存notepad++每次修改代码之后运行之前一定要保存,这样运行才能生效原创 2017-06-09 10:52:43 · 1983 阅读 · 0 评论 -
np.where和np.bincount详解
原文地址:https://stackoverflow.com/questions/23359886/selecting-rows-in-numpy-ndarray-based-on-the-value-of-two-columns?rq=1简单用法a = np.array(xrange(5*3)) a.shape =(5,3)对这样一个数组进行操作: array([[0,1,2],[3,4,5]原创 2017-07-19 09:40:53 · 752 阅读 · 0 评论 -
sort、sorted、cmp、reverse使用
1. cmp(比较大小的函数) eg:str1='abc'str2='lmn'print cmp(str1,str2)>>>-1str1<str2 -1str1>str2 1str1==str2 0注意:cmp(“abc”,“abcd”)结果是-1,更长的序列要“大”在Python2中经常使用这一个函数,三是在Python3中取消了这一个函数,在operat原创 2017-09-04 11:08:22 · 642 阅读 · 0 评论 -
python学习核心技巧
1. 在理解算法的时候,看到每一行程序,将其视觉化,加深理解的深度和速度,在编写算法的时候也是这样,一定要注意视觉化思考2. 代码用少不用多3. 一步步的去看原创 2017-06-01 16:16:17 · 321 阅读 · 0 评论