码迷,mamicode.com
首页 >  
搜索关键字:sparse coding    ( 13221个结果
python - 回溯继承树 - 自己实现
# -*- coding: utf-8 -*-class test(object): passclass test1(test): passclass test2(test1): passprint test2.__bases__print type(test2.__bases__...
分类:编程语言   时间:2014-06-26 23:12:27    阅读次数:268
python基础学习07(核心编程第二版)部分
# -*- coding: utf-8 -*- # ==================== #File: python #Author: python #Date: 2014 #==================== __author__ = 'Administrator' #file与inpu...
分类:编程语言   时间:2014-06-26 22:48:00    阅读次数:458
python基础学习08(核心编程第二版)部分
# -*- coding: utf-8 -*- # ==================== #File: python #Author: python #Date: 2014 #==================== __author__ = 'Administrator' #异常 """ Na...
分类:编程语言   时间:2014-06-26 22:32:05    阅读次数:353
Python使用TCPServer编写(多线程)Socket服务
SocketServer包对socket包进行了包装(封装),使得创建socket服务非常简单。TCPServer+BaseRequestHandler使用TCPServer和BaseRequestHandler编写socket服务的样例。#-*- coding:utf-8 -*-from Sock...
分类:编程语言   时间:2014-06-26 19:28:07    阅读次数:307
operator模块
# -*- coding: utf-8 -*- # ==================== #File: python #Author: python #Date: 2014 #==================== __author__ = 'Administrator' #operator模...
分类:其他好文   时间:2014-06-26 16:09:10    阅读次数:218
Some thoughts on a progress
I can feel that I am making great progress now.. if inspected closely, it is obvious that what I'm getting through is, a newbie phase:coding details m...
分类:其他好文   时间:2014-06-25 18:23:24    阅读次数:206
Key-Value Coding (KVC)
KVC/KVO1 KVC/KVO2 线程(GCP)
分类:其他好文   时间:2014-06-25 12:40:23    阅读次数:109
Python lambda和reduce函数
看到一篇博文写lambda和reduce函数,笔者小痒了一下,用Python实现一下:   #! /usr/bin/env python # -*-coding:utf-8-*-   import time import math   def test_reduce():    start_time = time.clock()    print reduce[A1] (lam...
分类:编程语言   时间:2014-06-24 20:37:10    阅读次数:272
Reverse Integer
题目 Reverse digits of an integer. Example1: x = 123, return 321 Example2: x = -123, return -321 Have you thought about this? Here are some good questions to ask before coding. Bonus poin...
分类:其他好文   时间:2014-06-24 20:16:39    阅读次数:180
python中的堆排序peapq模块
heapq模块实现了python中的堆排序,并提供了有关方法。让用Python实现排序算法有了简单快捷的方式。 heapq的官方文档和源码:8.4.heapq-Heap queue algorithm 下面通过举例的方式说明heapq的应用方法 实现堆排序 #! /usr/bin/evn python #coding:utf-8 from heapq import * def ...
分类:编程语言   时间:2014-06-24 18:47:47    阅读次数:403
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!