码迷,mamicode.com
首页 >  
搜索关键字:self    ( 14215个结果
python16_day10【SelectWeb、SelectWget、paramiko、pymysql】
一、select实现Web框架(自定义WEB框架) 1 import select 2 import socket 3 4 5 class Flask(object): 6 def __init__(self, routers): 7 self.routers = routers 8 9 def p ...
分类:数据库   时间:2017-03-28 21:24:00    阅读次数:290
页面跳转
1.代码跳转 【1】 //以modal 方式跳转 [self presentModalViewController:nil animated:YES]; //以 modal跳转的返回方法 [self dismissModalViewControllerAnimated:YES]; 【2】 //以pu ...
分类:其他好文   时间:2017-03-28 19:34:44    阅读次数:141
pyqt重写键盘事件+获取信号发送对象
# _*_ coding:utf-8 _*_ import sys from PyQt4 import QtGui,QtCore class Example(QtGui.QMainWindow): def __init__(self): super(Example,self).__init__() ... ...
分类:其他好文   时间:2017-03-28 17:12:51    阅读次数:329
python3.6面向对象的多继承与装饰器
#多继承classA:defshow(self):print(‘AAAA‘)classB:deffun(self):print(‘BBBB‘)classC(B,A):passx=C()#类的特殊方法‘‘‘类属性:__dict__:类的属性(包含一个字典,由类的数据属性组成)__doc__:类的文档字符串__name__:类名‘‘‘x=‘a\nb‘#print(repr(x))#实例调用:‘‘‘__init__初..
分类:编程语言   时间:2017-03-28 11:32:38    阅读次数:206
Generator
#include int book[10001]; int add[4]; int one[10001]; int two[10001]; void fun(int x){ int temp=x; int y=x; int t=0; while(x){ add[t]=x%10; t++; x=x/1... ...
分类:其他好文   时间:2017-03-27 21:24:49    阅读次数:127
Python之基本排序算法的实现
1 import cProfile 2 import random 3 class SortAlgorithm: 4 def __init__(self,unsortedlist=[]): 5 self.unsortedlist = unsortedlist or [i for i in rando... ...
分类:编程语言   时间:2017-03-27 00:43:15    阅读次数:184
masonry
UIView *myView = nil [self.window addSubview:myView]; //使用之前要先将试图添加到俯视图上 然后再约束 [myView mas_makeConstraints:^(MASConstraintMaker *make){ make.center.eq ...
分类:其他好文   时间:2017-03-26 23:29:58    阅读次数:270
422. Valid Word Square
题目: Given a sequence of words, check whether it forms a valid word square. A sequence of words forms a valid word square if the kth row and column rea ...
分类:其他好文   时间:2017-03-26 00:51:27    阅读次数:181
Python OrderedDict使用
一、最近最少使用实现: OR: ...
分类:编程语言   时间:2017-03-25 23:53:37    阅读次数:348
delphi中用Table表组件和Query查询组件配合进行的增删改查
delphi中用Table表组件和Query查询组件配合进行的增删改查 一、打开数据库表进入检索状态 var Table1:TTable; //定义Table1为TTable类型的变量 begin Table1:=TTable.Create(self);//自建表 Table1:=DatabaseN ...
分类:Windows程序   时间:2017-03-25 22:16:57    阅读次数:877
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!