拓扑排序,以边上标号为点,正方形为边,拓扑图中存在有向环时unbounded,否则bounded;注意:仔细处理输入; 遍历一个点时,下一次遍历拼上的下一个方形边;即假设遍历到 A+ 时,下次从 A- 开始遍历; 1 #include 2 #include 3 #include 4 us...
分类:
其他好文 时间:
2014-07-22 22:41:15
阅读次数:
282
# -*- coding: cp936 -*-from PyQt4 import QtGui,QtCoreimport sysclass MianWindow(QtGui.QMainWindow): def __init__(self,parent=None): QtGui.QM...
分类:
其他好文 时间:
2014-07-22 22:36:13
阅读次数:
219
1.实现单元格的删除,实现效果如下 Cpp代码-(void)viewDidLoad{[superviewDidLoad];//设置导航栏self.editButtonItem.title=@"编辑";self.navigation.rightBarButtonItem=self.editButt.....
分类:
移动开发 时间:
2014-07-22 22:35:54
阅读次数:
262
#!/us/bin/envpythonfromPyQt4importQtCore,QtGuiclassAMovableLabel(QtGui.QLabel):def__init__(self,parent=None):super(AMovableLabel,self).__init__(parent...
分类:
其他好文 时间:
2014-07-22 22:35:35
阅读次数:
184
Python的基础知识:if-elif-elsewhile-elsebreakcontinuefrom..importimport..dir(),当提供一个模块明的时候,返回模块定义的名称列表列表[],元祖(),字典{}面向对象编程:self,__init__方法try-excepttry-fina...
分类:
编程语言 时间:
2014-07-22 22:32:16
阅读次数:
249
最近在tornado\mongodb\ansible
mongodb中有个find()方法很牛逼,可以将集合中所有的表都传出来,一开始我这么写
class Module_actionHandler(tornado.web.RequestHandler):
def get(self, *args, **kwargs):
coll = self.applic...
分类:
数据库 时间:
2014-07-22 17:52:41
阅读次数:
291
xmlns:sys="clr-namespace:System;assembly=mscorlib" NOTE: System;与assembly中间不能有空格否则报错,Error 1 The URI "clr-namespace:System; assembly=mscorlib" is not ...
分类:
其他好文 时间:
2014-07-22 00:22:33
阅读次数:
333
import queue,threading l=threading.Lock()class MyThread(threading.Thread): def __init__(self): threading.Thread.__init__(self) global...
分类:
编程语言 时间:
2014-07-22 00:20:34
阅读次数:
189
//1、这一章的习题纯粹为了刷存在感。。。
typedef struct phone
{
char * quhao;
char * jiaohuantai;
char * zhanhaoma;
};
typedef struct call
{
char * date;
char * time;
phone * shiyong;
phone * self;
phone * huji...
分类:
其他好文 时间:
2014-07-21 23:16:53
阅读次数:
177
方便统计各种平台项目的代码量,主要用到了find指令来进行处理的详情点击打开链接。
源代码如下:
# -*- coding: utf-8 -*-
'''
Created on Jul 18, 2014
@author: Jayhomzhou
@note: 计算注释以及代码的总行数(即代码量)
'''
import subprocess
def countCodes(codePa...
分类:
编程语言 时间:
2014-07-21 16:38:02
阅读次数:
352