
python
k_shmily
数字图像处理,模式识别,DSP,Linux编程
展开
-
python语言基础-入门笔记1
模块导入方法(1)import mprint m.plus(1, 2)方法(2)from m import plusprint plus(1, 2)导入系统模块import sys.pathfrom os import *import string, reimport time,randomimport socket, threading添加到系原创 2016-07-30 15:19:57 · 397 阅读 · 0 评论 -
pdb — The Python Debugger(Python调试器)
在Spyder中进行python开发时,调试是必不可少的。它主要依赖了pdb模块,pdb模块为Python开发者提供一个交互式的代码调试器。发现该调试器和gdb有很多相似之处,这里罗列出几条常用的调试命令。h(elp) [command] Without argument, print the list of available commands. With a command原创 2017-03-14 17:54:15 · 847 阅读 · 0 评论 -
Python编辑器IDLE使用教程
转自:http://hao360.blog.51cto.com/5820068/1339919开始->程序->Python 2.*/3.*-> IDLE (Python GUI)如此就打开了Python Shell->File->New window(Ctrl+N)就出现了python编辑器编写代码比如print('Hello World') 然后保存文件转载 2017-03-13 15:03:22 · 21627 阅读 · 0 评论 -
python 机器学习的开发环境搭建(numpy,scipy,matplotlib)
转自:http://blog.chinaunix.net/uid-26642637-id-4543576.html一、概述用Python来编写机器学习方面的代码是相当简单的,因为Python下有很多关于机器学习的库。其中下面三个库numpy,scipy,matplotlib,scikit-learn是常用组合,分别是科学计算包,科学工具集,画图工具包,机器学习工具集。numpy转载 2016-11-22 15:01:37 · 757 阅读 · 1 评论 -
python 机器学习window环境部署
本文采用win7 32,python3.41.参考博文下载完整相关的依赖模块http://blog.youkuaiyun.com/k_shmily/article/details/532849091.下载pip,安装python setup.py install2.添加pip环境变量D:\Python34\Scripts3.安装官方依赖模块pip原创 2016-11-22 17:26:17 · 565 阅读 · 0 评论 -
python语言基础-入门笔记2
http://edu.51cto.com/course/course_id-1413.htmlpython中一切都是对象类名称,类状态,类行为#定义一个类class Monk: def __init__(self, name, age): self.name = name self.age = age def speech(s原创 2016-07-30 16:51:30 · 352 阅读 · 0 评论 -
关于numpy中内存共享的问题
df>>> a=np.arange(10, 0, -1, dtype=float)>>> b=a>>> c=a.copy()>>> d=a[0:3]>>> e=a[[0,1,2]]>>> aarray([ 10., 9., 8., 7., 6., 5., 4., 3., 2., 1.])>>> barray([ 10., 9., 8.原创 2017-03-16 22:55:23 · 1641 阅读 · 0 评论