按照教程,如果出现vcvarsall.bat找不到的情况,则需要安装正确版本的visual studio http://docs.cython.org/src/tutorial/cython_tutorial.html python 2.7.x使用的是vs2008,如果没有安装,可以安装vs2008 expr...
分类:
其他好文 时间:
2014-07-20 23:34:08
阅读次数:
644
mysql主从复制:常见问题:1、主从不同步(同步延迟)主从复制考虑的自动化问题:备份自动化:1、全量备份2、增量备份恢复自动化添加从库自动化智能监控:pytondns
分类:
数据库 时间:
2014-07-20 23:31:34
阅读次数:
323
解: (define?(pascal?n)
??(define?(get?n?i)
????(cond?((<=?i?1)?1)
??????????((>=?i?n)?1)
??????????(else?(+?(get?(-?n?1)?(-?i?1))
??????????...
分类:
其他好文 时间:
2014-07-20 23:29:02
阅读次数:
363
usingSystem;
usingSystem.Collections.Generic;
usingSystem.Linq;
usingSystem.Text;
usingSystem.Threading.Tasks;
namespaceConsoleApplication3
{
classProgram
{
staticvoidMain(string[]args)
{
int[][]arr=newint[3][];
arr[0]=newint[2]{1,2,};
arr[1]=newint[6]{3,4,..
分类:
其他好文 时间:
2014-07-20 23:12:43
阅读次数:
271
简单的二叉树的先根遍历模板的应用
class Solution:
# @param root, a tree node
# @return an integer
def hehe(self, num, root):
#再原来的基础上*10,再加上当前的root.val
num = num * 10 + root.val
...
分类:
其他好文 时间:
2014-07-20 22:45:33
阅读次数:
299
2014年7月20日
北京,晴,33℃
北京的夏天是燥热的,我攒了5万块钱,今天,我开始创业。
先自我介绍一下吧,1990年出生,去年大学本科毕业。来北京工作一年半,精通安卓,对产品有感觉,熟悉IOS,熟悉Python+Django,本科时有过创业经历。
我的家在河北唐山,中国北方。在我们那有一句谚语,“东北虎,唐山狼,XXX的小绵羊”。我认为我自小有一种“狼性”,说白了就...
分类:
其他好文 时间:
2014-07-20 22:45:03
阅读次数:
260
一、基本形式
列表有自己的sort方法,其对列表进行原址排序,既然是原址排序,那显然元组不可能拥有这种方法,因为元组是不可修改的。
x = [4, 6, 2, 1, 7, 9]
x.sort()
print x
# [1, 2, 4, 6, 7, 9]
如果需要一个排序好的副本,同时保持原有列表不变,怎么实现呢
x = [4, 6, 2, 1, 7, 9]
y = x[ : ...
分类:
编程语言 时间:
2014-07-20 22:16:03
阅读次数:
252
《Kivy A to Z -- 如何从python代码中直接访问Android的Service》 一文中讲到了如何从python访问java的service,这一篇再来讲下如何创建一个基于Binder的Python Service以及如何从Java代码中访问这个Python创建的Service。...
分类:
编程语言 时间:
2014-07-20 22:12:03
阅读次数:
312
Reverse digits of an integer.
Example1: x = 123, return 321
Example2: x = -123, return -321
click to show spoilers.
Have you thought about this?
Here are some good questions to ask before c...
分类:
编程语言 时间:
2014-07-20 22:12:03
阅读次数:
251
Given two binary trees, write a function to check if they are equal or not.
Two binary trees are considered equal if they are structurally identical and the nodes have the same value.
比较两个...
分类:
编程语言 时间:
2014-07-20 22:12:03
阅读次数:
273