![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python 编程
信息世界
热爱数学建模,喜欢设计算法。
展开
-
python 中一些基本函数的用法
python sys.argv[]用法,参考博客: http://blog.csdn.net/sxingming/article/details/52074311 python getopt使用 http://blog.csdn.net/tianzhu123/article/details/7655499 Python单元测试——深入理解unittest http://blog.c原创 2017-04-03 22:32:00 · 464 阅读 · 0 评论 -
Python查看帮助---help函数
查看所有的关键字:help("keywords") 查看所有的modules:help("modules") 单看所有的modules中包含指定字符串的modules: help("modules yourstr") 查看中常见的topics: help("topics") >>>help("topics") 例如想要查看CALLS主题的帮助,则:help("CALLS") 查转载 2017-04-03 11:25:07 · 1704 阅读 · 0 评论 -
Python中安装模块
python 版本:Ubuntu 16.04 系统自带的python 2.7.12版本。 sudo apt-get update sudo apt-get install python-pip pip install –upgrade pip #升级pip(升级失败!) $ pip install requests #安装requests模块 安装成功! $ pip install原创 2017-04-02 16:43:00 · 721 阅读 · 0 评论 -
Python中的Numpy入门教程
Numpy是什么 Numpy是Python的一个科学计算的库,提供了矩阵运算的功能,其一般与Scipy、matplotlib一起使用。 import numpy as np 多维数组 多维数组的类型是:numpy.ndarray。 以list或tuple变量为参数产生一维数组: 以list或tuple变量为参数产生二维数组: 生成数组的时候,可以指定数据类型,例如numpy.int32,转载 2017-06-19 22:35:12 · 391 阅读 · 0 评论 -
URL中的特殊字符处理笔记
参考资料: http://pichcar.iteye.com/blog/676292原创 2017-07-11 15:38:31 · 477 阅读 · 0 评论