最近在学习cocos2dx,预备将学习过程整理成笔记。需要的工具和环境整理一下:使用的版本cocos2dx目前已经出到了v3.1.1,学习和项目的话还是用2.2.3为宜,毕竟不大想做小白鼠,并且学习了几天之后才发出3.X版本的,版本内容变动比较大。开发环境1
jdk 1.6以上2 python 2....
分类:
其他好文 时间:
2014-06-10 13:05:07
阅读次数:
389
美妙的Python之Python简单介绍及安装 简而言之:Python
是能你无限惊喜的语言,与众不同。 1.Python: Python英文意思为蟒蛇,故又称为蟒蛇语言,在图标设计上有所体现,贵铎·范·罗萨姆(Guido van
Rossum)于1989年创立。Pytho...
分类:
编程语言 时间:
2014-06-10 09:20:17
阅读次数:
305
Python中的对象包含三要素:id、type、value,
其中id用来唯一标识一个对象,type标识对象的类型,value是对象的值。is判断的是a对象是否就是b对象,是通过id来判断的;==判断的是a对象的值是否和b对象的值相等,是通过value来判断的。如下代码或许可以帮助我们理解。>>>
...
分类:
编程语言 时间:
2014-06-10 08:52:31
阅读次数:
235
1. python -m cProfile myprogram.py2. 使用import
profile模块import profiledef profileTest(): ...if __name__ == "__main__":
profile.run("profileTest()")3......
分类:
编程语言 时间:
2014-06-09 18:59:10
阅读次数:
219
原题地址:https://oj.leetcode.com/problems/search-in-rotated-sorted-array/题意:Suppose
a sorted array is rotated at some pivot unknown to you beforehand.(i.e...
分类:
编程语言 时间:
2014-06-09 18:43:14
阅读次数:
273
1.关于pippip是python的软件安装工具,下面是pip的使用方法:(1)安装包:pip
install SomePackage(2)查看安装包时安装了哪些文件:pip show --files SomePackage(3)查看哪些包有更新:pip
show --files SomePacka...
分类:
编程语言 时间:
2014-06-09 17:58:04
阅读次数:
240
原题地址:https://oj.leetcode.com/problems/combination-sum/题意:Given
a set of candidate numbers (C) and a target number (T), find all unique
combinations in...
分类:
编程语言 时间:
2014-06-09 17:50:09
阅读次数:
333
原题地址:https://oj.leetcode.com/problems/first-missing-positive/题意:Given
an unsorted integer array, find the first missing positive integer.For
example,G...
分类:
编程语言 时间:
2014-06-09 17:44:43
阅读次数:
980
原题地址:https://oj.leetcode.com/problems/combination-sum-ii/题意:Given
a collection of candidate numbers (C) and a target number (T), find all unique
combi...
分类:
编程语言 时间:
2014-06-09 17:41:58
阅读次数:
320