码迷,mamicode.com
首页 >  
搜索关键字:python objects all    ( 160304个结果)
【Python】多线程编程
1、thread模块 2、threading模块 3、Queue模块与多线程互斥 简介: thread和threading模块允许创建和管理线程,thread模块提供了基本的线程和锁的支持,而threading提供了更高级别,功能更强的线程管理功能,Queue模块 允许创建一个可以用于多个线程之间共...
分类:编程语言   时间:2014-06-25 13:39:51    阅读次数:244
C++学习指南
转载于stackoverflow:http://stackoverflow.com/questions/388242/the-definitive-c-book-guide-and-list 感谢George Stocker的总结Reference Style - All Levels A Tour...
分类:编程语言   时间:2014-06-25 13:28:14    阅读次数:314
SPOJ Python Day2: Small factorials
24. Small factorials 这题目非常简单,求“小整数(1-100)”的阶乘。题目规定了时间和程序大小。 所以能想到的最简单的循环,递归,和全算出来查表都是不行的。 正确的方法的算法,如这个博客所示,写的非常清楚了,数组进位法: http://www.open-open.com/hom...
分类:编程语言   时间:2014-06-25 13:16:39    阅读次数:222
第一次用gurobi建模解模有感
使用python语言,这种语言具有强大的可读性,自己写程序的时候也要记得把必要的注释写在程序中~其实最重要的还是公式的推敲和建立,python语言只是一个翻译公式的过程。执行方法是:用cmd打开DOS界面找到.py的位置,输入“gurobi.bat 文件名.py”,如果有错误,会有相应的提醒,根据提...
分类:其他好文   时间:2014-06-25 09:35:17    阅读次数:693
linux命令strings
linux命令strings,其man信息如下:strings(1) GNU Development Tools strings(1)NAME strings - 显示文件中的可打印字符总览 (SYNOPSIS) strings [-a|-|--all] [-f|--print-file-name]...
分类:系统相关   时间:2014-06-25 09:28:50    阅读次数:304
UIPanel
【UIPanel】 UIPanel is a component that collects and manages all widgets underneath it. UIPanel is responsible for creating the actual draw calls using....
分类:其他好文   时间:2014-06-25 09:19:41    阅读次数:305
SPOJ Python Day2: Prime Generator
2. Prime Generator 任务很简单,生成m到n之间的所有质数。一个比较常见的思路是: 自然数$1, 2, …, N$中的最大的质因子要小于$\sqrt{N}$。所以用m到n中的每一个数去试除1到$\sqrt{n}$中的所有数。能整除就是合数,全不能整除就是质数。 但是这么做会超时。。 ...
分类:编程语言   时间:2014-06-25 09:18:26    阅读次数:215
一起来写2048(160行python代码)
前言: Life is short ,you need python.--Bruce Eckel我与2048的缘,不是缘于一个玩家,而是一次,一次,重新的ACM比赛.四月份校赛初赛,第一次碰到2048,两周后决赛再次遇到2048,后来五月份的广东省赛,又出现了2048。在这三次比赛过程中,我一次20...
分类:编程语言   时间:2014-06-25 09:17:46    阅读次数:340
Leetcode Letter Combinations of a Phone Number
Given a digit string, return all possible letter combinations that the number could represent.A mapping of digit to letters (just like on the telephon...
分类:其他好文   时间:2014-06-25 09:15:12    阅读次数:362
python--字符串为空
str1 = ""str2 = Nonestr3 = "hello"if str2: print "not null"else: print "null"这样,不仅可以判定字符串是否为空,还能判定是否为None
分类:编程语言   时间:2014-06-25 00:57:06    阅读次数:240
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!