码迷,mamicode.com
首页 >  
搜索关键字:python queue pipe    ( 144597个结果)
sublime3 ctl+b无效
Preference->Browse Packages->python,编辑Python.sublime-build文件,在字典里添加path item,value为你的python路径,示例如下:{ "cmd":["python.exe", "-u", "$file"], "path":"C:/P...
分类:其他好文   时间:2014-07-16 19:12:25    阅读次数:200
[Python][MachineLeaning]Python Scikit-learn学习笔记1-Datasets&Estimators
Scikit-learn官网:http://scikit-learn.org/stable/index.htmlDatasets标准的数据集格式为一组多维特征向量组成的集合。数据集的标准形状(shape)为二维数组(samples, features),其中samples表示数据集大小,featur...
分类:编程语言   时间:2014-07-16 19:09:46    阅读次数:263
spark热点互动问答
[Spark亚太研究院 决战云计算大数据时代 100期公益大讲堂 互动问答]Q1:我想问,hdfs的namenode挂了,怎么处理? 使用ZooKeeper; 使用Mesos; 使用Yarn;Q2:用python和scala区别大吗? 就代码的风格而言是不大的; 世界上也有很多人使用python开发...
分类:其他好文   时间:2014-07-16 19:09:29    阅读次数:294
cx_Oracle.DatabaseError: ORA-12541: TNS:no listener
问题:利用Python连接Oracle时报错,完整过程如下import cx_Oracleconn = cx_Oracle.connect('testma/dingjia@192.168.88.139:1521/orcl')Traceback (most recent call last): Fi....
分类:数据库   时间:2014-07-16 18:50:04    阅读次数:2108
Tornado/Python 学习笔记(一)
1.源代码下载及安装:http://www.tornadoweb.org/en/stable/2.python中xmlrpc库官方文档:https://docs.python.org/3/library/xmlrpc.html?highlight=xmlrpc3.xml介绍与学习:http://ww...
分类:编程语言   时间:2014-07-16 18:47:23    阅读次数:278
Tornado/Python 学习笔记(二)
部分ssrpc.py代码分析 -- 服务端: 1 #!/usr/bin/python3 2 3 from xmlrpc.client import Fault, dumps, loads 4 import sys 5 from socketserver import ForkingMixIn 6 ....
分类:编程语言   时间:2014-07-16 18:14:43    阅读次数:296
python中的各种排序
#encoding=utf-8import randomfrom copy import copy def directInsertSort(seq): """ 直接插入排序 """ size = len(seq) for i in range(1,size): t...
分类:编程语言   时间:2014-07-16 18:11:59    阅读次数:255
python中将字典转换成定义它的json字符串
Python的字典和JSON在表现形式上非常相似#这是Python中的一个字典 dic = { 'str': 'this is a string', 'list': [1, 2, 'a', 'b'], 'sub_dic': { 'sub_str': 'this is sub str', 'sub_l...
分类:编程语言   时间:2014-07-16 18:09:52    阅读次数:301
python 实现求和、计数、最大最小值、平均值、中位数、标准偏差、百分比。
import sys class Stats: def __init__(self, sequence): # sequence of numbers we will process # convert all items to floats for numeri...
分类:编程语言   时间:2014-07-16 18:06:48    阅读次数:257
Python知识点: __import__
help(__import__)__import__(...) __import__(name, globals={}, locals={}, fromlist=[], level=-1) -> module 导入一个模块。 globals:决定上下文,不修改。 locals:当前未使用。 ...
分类:编程语言   时间:2014-07-16 00:48:27    阅读次数:302
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!