码迷,mamicode.com
首页 >  
搜索关键字:python objects all    ( 160304个结果)
在Python中处理中文路径
AlienTech for better life!~...
分类:编程语言   时间:2014-05-26 04:35:51    阅读次数:389
sae Python下设置定时任务
官方文档在这里:http://sae.sina.com.cn/doc/python/cron.html 就是通过在config.yaml文件中添加Cron段,例如: cron: - description: timing_task   url: /on_time   schedule: "*/5 * * * *" 代表每5分钟以get方式访问/on_time这个链接。 ...
分类:编程语言   时间:2014-05-25 00:53:02    阅读次数:296
Python重写C语言程序100例--Part8
''' 【程序61】 题目:打印出杨辉三角形(要求打印出10行如下图)    1.程序分析: ''' if __name__ == '__main__': a = [] for i in range(10): a.append([]) for j in range(10): a[i].append(0) for i...
分类:编程语言   时间:2014-05-25 00:52:00    阅读次数:436
建立dblink(database link)
database linke是建立一个数据库到另一个数据库的路径的对象,通过database link可以允许查询远程表,我理解可以算作一种分布式数据库的用法。 database link是单向连接,既然它是一种对象,那自然可以在xxx_objects表中查询到相关的信息。建立database link前需要明确几个事情: 1、确认从建立方的server可以访问远程数据库。 2、需要...
分类:数据库   时间:2014-05-24 23:38:45    阅读次数:445
c 实现的 循环队列
// // fs_loop_queue.h // fsnet // // Created by Vincent on 14-5-22. // Copyright (c) 2014年 Vincent. All rights reserved. // #ifndef fsnet_fs_loop_queue_h #define fsnet_fs_loop_queue_h #include "...
分类:其他好文   时间:2014-05-24 23:36:41    阅读次数:450
LeetCode: Spiral Matrix [058]
【题目】 Given a matrix of m x n elements (m rows, n columns), return all elements of the matrix in spiral order. For example, Given the following matrix: [ [ 1, 2, 3 ], [ 4, 5, 6 ], [ 7, 8, 9 ] ] You should return [1,2,3,6,9,8,7,4,5]. 【题意】 螺旋输出MxN...
分类:其他好文   时间:2014-05-24 23:11:02    阅读次数:279
python并发的痛——多线程
伴随着多核时代的到来,怎样充分利用好你的多个CPU的优势成了技术的关注点,那就是多线程多进程编程,二者的区别也很明显,进程是操作系统中拥有资源的最小单位,但是是重量级的。线程是系统调度的最小单位,是轻量级的,一个进程可以拥有很多个线程,但是线程是不拥有资源的,同一个进程中的线程共享这个进程中拥有的资源。以前学习java,一个灰常重要的并发方式就是多线程,因为线程的开销要比进程的少很多,而通过加锁来...
分类:编程语言   时间:2014-05-24 23:04:56    阅读次数:389
young tableaus
Young tableaus  是 Introduction_to_algorithms的一 道课后习题, 一度还把我难住了。现在把 python 代码贴出来,供大家参考。 #! /usr/bin/python """ young tableau    m x n matrix """ import sys class element():     def __ini...
分类:其他好文   时间:2014-05-24 21:08:21    阅读次数:397
poj 3031 Big Christmas Tree(水spfa)
http://poj.org/problem?id=3013 题意: Because of a technical difficulty, price of an edge will be (sum of weights of all descendant nodes) × (unit price of the edge).这句话一直没看懂。后面还以为是最小生成树。 正确...
分类:其他好文   时间:2014-05-24 20:27:13    阅读次数:266
LeetCode: Merge Intervals [055]
【题目】 Given an array of non-negative integers, you are initially positioned at the first index of the array. Given a collection of intervals, merge all overlapping intervals. For example, Given [1,3],[2,6],[8,10],[15,18], return [1,6],[8,10],[15,18]. ...
分类:其他好文   时间:2014-05-24 14:18:27    阅读次数:193
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!