下列函数或常量需要替换: ? CCLuaLog() print() CCFileUtils:sharedFileUtils() cc.FileUtils:getInstance() kCCTexture2DPixelFormat_* cc.TEXTURE2D_PIXEL_FORMAT_* display.addSpriteFramesWithFile displa...
分类:
其他好文 时间:
2014-10-22 11:11:09
阅读次数:
214
while True: try: s=raw_input() a,b=s.split(' ') a,b=int(a),int(b) print a+b except EOFError: break
分类:
其他好文 时间:
2014-10-22 08:44:07
阅读次数:
162
for name in L:for可以迭代list和tuplefor循环list或tuple可以表示一个有序集合。如果我们想依次访问一个list中的每一个元素呢?比如 list:L = ['Adam', 'Lisa', 'Bart']print L[0]print L[1]print L[2]如果l...
分类:
编程语言 时间:
2014-10-22 07:38:19
阅读次数:
148
# coding=gbkLOL1 = ['OMG', 'EDG', '皇族']LOL2 = ['韩国', '欧洲', '美国']for l1 in LOL1: for l2 in LOL2: print (l1+' VS '+l2) l1每循环一次,l2 就会循环 3 次,这样...
分类:
编程语言 时间:
2014-10-22 07:35:54
阅读次数:
159
while循环和 for 循环不同的另一种循环是 while 循环,while 循环不会迭代 list 或 tuple 的元素,而是根据表达式判断循环是否结束。比如要从 0 开始打印不大于 N 的整数:N = 10x = 0while x < N: print x x = x + 1wh...
分类:
编程语言 时间:
2014-10-22 07:35:29
阅读次数:
174
1.前言 对于优化SQL语句或存储过程,以前主要是用如下语句来判断具体执行时间,但是SQL环境是复杂多变的,下面语句并不能精准判断性能是否提高;如果需要精确知道CPU、IO等信息,就无能为力了。PRINT convert(varchar(30),getdate(),121)select * fr.....
分类:
数据库 时间:
2014-10-22 00:38:13
阅读次数:
215
# This Python file uses the following encoding: utf-8# 215 = 32768 and the sum of its digits is 3 + 2 + 7 + 6 + 8 = 26.# What is the sum of the digits...
分类:
编程语言 时间:
2014-10-21 23:07:02
阅读次数:
203
my_name = 'Zed A. Shaw'my_age = 35 # not a liemy_height = 74 # inchesmy_weight = 180 # lbsmy_eyes = 'Blue'my_teeth = 'White'my_hair = 'Brown'print "Le...
分类:
其他好文 时间:
2014-10-21 23:05:05
阅读次数:
257
lsblk可以查看磁盘的分区和挂载情况
lsblk所有的参数
-a, --all 显示所有设备
-b, --bytes 以bytes方式显示设备大小
-d, --nodeps 不显示 slaves 或 holders
-D, --discard print discard capabilities
...
分类:
其他好文 时间:
2014-10-21 21:36:27
阅读次数:
198
Linux中find常见用法示例·find path -option [ -print ] [ -exec -ok command ] {} \;find命令的参数;pathname: find命令所查找的目录路径。例如用.来表示当前目录,用/来表示系统根目录。-print: find命令将匹配的文...
分类:
系统相关 时间:
2014-10-21 21:05:21
阅读次数:
380