>>> for i in range(0,10):if i >
10:break;else:print "hello world";输出:hello world>>> for i in
range(0,10):if i > 5:break;else:print "hello world";没有输出-...
分类:
编程语言 时间:
2014-05-01 21:13:53
阅读次数:
368
赋值语句
注释,用(--)来表示
定义,lua中没有定义(申明数据类型),它是通过赋值来确定其数据类型的。
赋值,是改变一个变量的值和改变表域的最基本的方法。 a = "hello" .. "world"
Lua可以对多个变量同时赋值,变量列表和值列表的各个元素用逗号分开,赋值语句右边的值会依次赋给左边的变量。a, b = 10, 2*x a=10; b=2*x
遇到赋值语句...
分类:
其他好文 时间:
2014-05-01 18:16:03
阅读次数:
337
1. 查看当前所用Perl版本号perl –v2. 一个简单的Perl程序print "hello
world";#这是注释 执行它:Perl helloWorld.txt 文件名后缀可以是pl可以是txt3. 一个稍微复杂点的Perl程序 @line =
`perldoc -u -f atan2....
分类:
其他好文 时间:
2014-05-01 12:48:19
阅读次数:
318
一、会议时间:2014年4月30日21:00--21:30二、会议地点:二三餐厅二楼三、会议目的: 开始学习安卓内容四、会议内容: 1、确定了未来几天的计划
第一天: 搭建安卓环境,配置安卓环境变量,配置安卓环境; 第二天: 学习有关安卓的相关知识,学习使用eclips,能够初步使用...
分类:
其他好文 时间:
2014-05-01 10:10:43
阅读次数:
312
问题描述:
在sublime text里写最简单的python语句hello world:
print ('hello world')
回车build后出错如下图:
解决办法:
这个问题的原因说起来很幼稚,就是因为没有保存文件。所...
分类:
其他好文 时间:
2014-04-30 22:16:38
阅读次数:
344
I am honored to be with you today at your commencement from one of the finest universities in the world. I never graduated from college. Truth be told, this is the closest I've ever gotten to a colleg...
分类:
其他好文 时间:
2014-04-29 13:46:22
阅读次数:
337
1D people lived in a 1D country. Everything in the country was one-dimensional, and everything was simple and clear: just one axis and two directions — forward and backward. Even a 1D world has proble...
分类:
其他好文 时间:
2014-04-29 13:44:22
阅读次数:
284
Problem Description
In the Wide Web World, Which web server was popular in web site? Apache, nginx, lighttpd? Baidu.com use Apache, and many web sites like 163.com use nginx. Why? Its configuration i...
分类:
其他好文 时间:
2014-04-29 13:24:20
阅读次数:
355
本系列主要参考《Unity Shaders and Effects Cookbook》一书(感谢原书作者),同时会加上一点个人理解或拓展。
这里是本书所有的插图。这里是本书所需的代码和资源(当然你也可以从官网下载)。
========================================== 分割线 ==================================...
分类:
其他好文 时间:
2014-04-29 13:17:21
阅读次数:
376