python
fatcyus
一个希望走技术的学渣
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Ubuntu16.04 安装skimage
1、先安装需要的依赖文件: $ sudo apt-get install python-numpy $ sudo apt-get install python-scipy $ sudo apt-get install python-matplotlib 2、安装skimage$ sudo pip install scikit-image 3、测试是否安装skimageim原创 2017-09-16 14:51:04 · 8139 阅读 · 0 评论 -
pycharm 开启代码提示
1、先打开pycharm2、依次选择红框部分3、搞好之后,代码提示便可以使用了原创 2017-09-02 22:23:04 · 19117 阅读 · 0 评论 -
ubuntu16.04修改Python默认版本
Ubuntu16.04 默认python版本是Python2,但也可以修改默认的Python版本 sudo update-alternatives --install /usr/bin/python python /usr/bin/python2 100 sudo update-alternatives --install /usr/bin/python python /usr/bin/pyth原创 2017-10-03 23:09:47 · 1962 阅读 · 0 评论 -
python 模块学习(一)
1、glob :一个文件操作相关的模块用它可以查找符合特定规则的文件路径名。查找文件只用到三个匹配符:”*”, “?”, “[]”。(1)”*”匹配0个或多个字符;(2)”?”匹配单个字符;(3)”[]”匹配指定范围内的字符,如:[0-9]匹配数字。转载 2017-09-16 14:57:22 · 294 阅读 · 0 评论 -
python 遇到的问题(一)
1、TypeError: ‘module’ object is not callablePython导入模块的方法有两种:import module 和 from module import,区别是前者所有导入的东西使用时需加上模块名的限定,而后者不需要。2、Add Jupyter to the interpreter of the current project.pip i原创 2017-11-14 21:29:14 · 895 阅读 · 0 评论 -
正则表达式
?匹配零次或一次前面的分组。*匹配零次或多次前面的分组。+匹配一次或多次前面的分组。{n}匹配 n 次前面的分组。{n,}匹配 n 次或更多前面的分组。{,m}匹配零次到 m 次前面的分组。{n,m}匹配至少 n 次、至多 m 次前面的分组。{n,m}?或*?或+?对前面的分组进行非贪心匹配。^spam 意味着字符串必须以 spam 开始。spam$意味着字符串必须以 spam 结束。.匹配所有字原创 2018-01-15 20:31:33 · 283 阅读 · 0 评论
分享