![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
脚本语言
野小不
这个作者很懒,什么都没留下…
展开
-
lua脚本中表的用法
--[[ lua表处理 ]]-- alice = {} alice[ "name" ] = "liuhui" alice[ "phone" ] = "15157121639" alice[ "address" ] = "杭州江干" alice[ "city" ] = "杭州" print( alice["name"] ) print( alice["city"] ) print( alic转载 2013-08-19 10:39:06 · 1044 阅读 · 0 评论 -
lua 取一个数字的整数部分
lua在对两个整数进行除法操作时不会向C那样将结果转换成整数,而是自动转换成浮点数。(lua没有数据类型之分)。如果要实现此功能需要取得结果中的整数部分。 math.ceil(x); Returns the smallest integer larger than or equal to x. --取一个数的整数部分 function getIntPart(x)转载 2013-11-18 15:57:24 · 1599 阅读 · 0 评论 -
python第三方包安装方法
python有很多非常实用的第三方库,可以下载安装包直接安装,但是还要通过搜索引擎搜索,有些也不是最新的,本文介绍一个简单的安装方法,使用了pip工具。 1、下载pip工具 给一个下载的链接:http://download.csdn.net/detail/edricbjtu/9354157 下载之后解压出来。 2、安装pip 在cmd中使用命令: pytho原创 2015-12-14 14:51:13 · 2111 阅读 · 0 评论