#-*-coding:utf-8-*-#python:2.x__author__='Administrator'fromPyQt4.QtGuiimport*fromPyQt4.Qtimport*fromPyQt4.QtCoreimport*importsysclassTree(QMainWindow...
分类:
其他好文 时间:
2014-08-05 21:49:20
阅读次数:
220
Q:在安装setuptools时Python ez_setup.py,或者安装其他egg包,有时候会碰到: UnicodeDecodeError错误,这是为什么呢?
安装setuptools时UnicodeDecodeError错误
mimetypes.init() # try to read system mime.types
File "C:\Python27\lib\mim...
分类:
其他好文 时间:
2014-08-05 19:35:50
阅读次数:
201
今天碰到一个很奇怪的问题,XCODE提示这样的警告 Pods was rejected as an implicit dependency for ‘libPods.a’ because its architectures
‘i386’ didn’t contain all required architectures ‘x86_64’
在网上搜了一篇,解析是这样的,因为pod 是以ARM6...
分类:
移动开发 时间:
2014-08-05 19:24:50
阅读次数:
297
最终效果图:
OauthViewController.m
//
// OauthViewController.m
// 20_帅哥no微博
//
// Created by beyond on 14-8-5.
// Copyright (c) 2014年 com.beyond. All rights reserved.
// 授权控制器,仅运行一次,取得了...
分类:
移动开发 时间:
2014-08-05 19:21:20
阅读次数:
352
Given a string containing only digits, restore it by returning all possible valid IP address combinations.For example: Given "25525511135",return ["25...
分类:
其他好文 时间:
2014-08-05 19:13:59
阅读次数:
225
有两个命令是用来开启和关闭触摸板的命令:synclient touchpadoff=1 --关闭触摸板命令:synclient touchpadoff=0 --开启触摸板但是需要先把选项SHMConfig打开,否则运行这两个命令会报错:Can't access shared memery area....
分类:
其他好文 时间:
2014-08-05 19:07:19
阅读次数:
279
1.1 def func():2 return a=3#错误的用法2.1 class a:2 def func():#func至少要有一个self参数3 ...........................3.1 class a:2 def _init_(self):#__...
分类:
编程语言 时间:
2014-08-05 19:05:19
阅读次数:
230
场景:在用户通过支付通道支付完成返回时,发现我收到的处理数据记录中有两条同样的数据记录,也就是同一笔钱,我数据库中记为了两条一样的记录。tornado端代码from tornado import genfrom tornado.concurrent import run_on_executorcla...
分类:
数据库 时间:
2014-08-05 19:03:49
阅读次数:
1248
#-*-coding:utf-8-*-#python:2.x__author__='Administrator'fromPyQt4.QtGuiimport*fromPyQt4.Qtimport*fromPyQt4.QtCoreimport*importsysclassTree(QTableView)...
分类:
其他好文 时间:
2014-08-05 19:00:39
阅读次数:
177
ext3.2 中的tree在IE中进行兼容性测试,遇到IE10时,无法点击,其他版本的IE(7、8、9、11)均正常。此bug是由于ext-all.js中的getAttributeNS方法不能兼容IE10出错引起的,下载了ext3.4,这里的getAttributeNS 被重写了,将3.4中的方法写...
分类:
其他好文 时间:
2014-08-05 18:52:29
阅读次数:
262