2013年4月6日

通过lua自带例子学习lua 08 (36-38)

摘要: -- Example 36 -- Standard Libraries - operating system facilities.-- OS functions:-- os.clock, os.date, os.difftime, os.execute, os.exit, os.getenv,--... 阅读全文

posted @ 2013-04-06 16:35 cv_ml_张欣男 阅读(315) 评论(0) 推荐(0) 编辑

通过lua自带例子学习lua 07 (31-35)

摘要: -- Example 31 --[[Standard LibrariesLua has standard built-in libraries for common operations inmath, string, table, input/output & operating system f... 阅读全文

posted @ 2013-04-06 16:31 cv_ml_张欣男 阅读(228) 评论(0) 推荐(0) 编辑

通过lua自带例子学习lua 06 (26-30)

摘要: -- Example 26 -- Functions.-- Define a function without parameters or return value.function myFirstLuaFunction()print("My first lua function was calle... 阅读全文

posted @ 2013-04-06 16:16 cv_ml_张欣男 阅读(274) 评论(0) 推荐(0) 编辑

通过lua自带例子学习lua 05

摘要: -- Example 21 -- repeat until statement.a=0repeata=a+1print(a)until a==5-------- Output ------12345-- Example 22 -- for statement.-- Numeric iteration... 阅读全文

posted @ 2013-04-06 15:41 cv_ml_张欣男 阅读(147) 评论(0) 推荐(0) 编辑

通过lua自带例子学习lua 04

摘要: -- Example 16 -- if statement.-- Simple if.a=1if a==1 thenprint ("a is one")end-------- Output ------a is one-- Example 17 -- if else statement.b="hap... 阅读全文

posted @ 2013-04-06 15:29 cv_ml_张欣男 阅读(202) 评论(0) 推荐(0) 编辑

通过lua自带例子学习lua 03

摘要: -- Example 11 -- Numbers.-- Multiple assignment showing different number formats.-- Two dots (..) are used to concatenate strings (or a-- string and a... 阅读全文

posted @ 2013-04-06 15:22 cv_ml_张欣男 阅读(214) 评论(0) 推荐(0) 编辑

通过lua自带例子学习lua 02

摘要: -- Example 6 -- Case Sensitive.-- Lua is case sensitive so all variable names & keywords-- must be in correct case.ab=1Ab=2AB=3print(ab,Ab,AB) -------... 阅读全文

posted @ 2013-04-06 15:17 cv_ml_张欣男 阅读(253) 评论(0) 推荐(0) 编辑

通过lua自带例子学习lua 01

摘要: -- Example 1 -- First Program.-- Classic hello program.print("hello")-------- Output ------hello-- Example 2 -- Comments.-- Single line comments in L... 阅读全文

posted @ 2013-04-06 15:02 cv_ml_张欣男 阅读(217) 评论(0) 推荐(0) 编辑

英语词汇立体记忆 02

摘要: lesson 007argue 英['ɑːgjuː] 美['ɑrgjʊ]vi. 争论,辩论;提出理由vt. 辩论,争论;证明;说服Just do what you are told, don't argue with me.照我说的去做,别跟我争。argument英['ɑːgjʊm(ə)nt] 美['ɑrɡjumənt]n. 论证;论据;争吵;内容提要They are always having argument about money.他们总是为钱而争吵。debate英[dɪ'beɪt] 美[dɪ'bet]vt. 辩论,争论,讨论vi. 阅读全文

posted @ 2013-04-06 01:02 cv_ml_张欣男 阅读(776) 评论(0) 推荐(0) 编辑

导航