摘要: 给定一个正整数 n(1 ≤ n ≤ 30),输出外观数列的第 n 项。 注意:整数序列中的每一项将表示为一个字符串。 「外观数列」是一个整数序列,从数字 1 开始,序列中的每一项都是对前一项的描述。前五项如下: 1. 12. 113. 214. 12115. 111221 一.暴力拆解:双百 思路: 阅读全文
posted @ 2020-07-14 21:55 Smah 阅读(194) 评论(0) 推荐(0) 编辑
摘要: 首先是判空 testtable={} if next(testtable) ==nil then print("这个table是空的") end 插入table local table1={["name"]="aaaa",["value"]=1} local table3={["name"]="cc 阅读全文
posted @ 2020-07-14 16:20 Smah 阅读(1508) 评论(0) 推荐(0) 编辑
摘要: os.date ([format [, time]]) Returns a string or a table containing date and time, formatted according to the given string format. If the time argument 阅读全文
posted @ 2020-07-14 11:46 Smah 阅读(2496) 评论(0) 推荐(0) 编辑