一、界面线程与工作线程GUI程序的主线程:GUI的用户输入主要来自鼠标、键盘,称为事件。处理事件的主循环,称为事件循环。这个用于处理各种界面的线程,称为界面线程GUI界面卡死所有的事件处理函数(slots)都应该迅速返回,否则主界面会卡死例如:鼠标点击一个按钮后,这个处理..
分类:
编程语言 时间:
2016-12-09 20:08:08
阅读次数:
246
Given an 2D board, count how many different battleships are in it. The battleships are represented with 'X's, empty slots are represented with '.'s. Y ...
分类:
其他好文 时间:
2016-12-08 23:19:52
阅读次数:
201
一、环境描述DB:redis3.2.5OS:centos6.6_x64IP:192.168.80.131/132/133PORT:7000redis集群模式,服务已启动二、具体操作1.三个独立的集群节点,每个集群只有自己一个节点[root@mysql-131~]#redis-cli-c-p7000127.0.0.1:7000>clusterinfocluster_state:okcluster_slots_assig..
分类:
其他好文 时间:
2016-12-07 14:40:44
阅读次数:
162
Given an 2D board, count how many different battleships are in it. The battleships are represented with 'X's, empty slots are represented with '.'s. Y ...
分类:
其他好文 时间:
2016-11-28 09:32:34
阅读次数:
414
1.http://python-china.org/t/77 有关method binding的理解 2.[Python] dir() 与 __dict__,__slots__ 的区别 3.Descriptor HowTo Guide 4.如何理解 Python 的 Descriptor? 5.简明 ...
分类:
编程语言 时间:
2016-11-14 02:11:09
阅读次数:
265
题目说明: Given an 2D board, count how many different battleships are in it. The battleships are represented with 'X's, empty slots are represented with ' ...
分类:
其他好文 时间:
2016-11-06 14:27:47
阅读次数:
220
Given an 2D board, count how many different battleships are in it. The battleships are represented with 'X's, empty slots are represented with '.'s. Y ...
分类:
其他好文 时间:
2016-10-20 07:17:27
阅读次数:
183
1、基本语法 class class_name(base_class): base_class是它继承的父类 class_var def methods(self,args): statements 经典类、新式类 版本2和版本3的区别,3都是新式类 经典类和新式类的区别: 1)__slots__, ...
分类:
编程语言 时间:
2016-10-01 21:49:18
阅读次数:
374
多重继承 class Student(man,oldman): pass 可以继承多个父类,拥有他们的方法,如果有父类有相同的方法,哪个在前用哪个 定制类 看到类似__slots__这种形如 __xxx__的变量或函数名就要注意,这些在python中是有特殊用途的 我们已经知道了__slots__的 ...
分类:
编程语言 时间:
2016-09-14 20:26:11
阅读次数:
150
正常情况下,当我们定义了一个class,创建一个class实例后,我么可以给实例绑定任何属性和方法,这就是动态语言的灵活性,依旧创建一个新类 Student 还可以给实例绑定一个方法 但是给一个实例绑定方法对另一个实例,是不起作用的,我们可以给class绑定方法 如果我们想要限制实例的属性怎么办,比 ...
分类:
编程语言 时间:
2016-09-13 19:09:28
阅读次数:
141