码迷,mamicode.com
首页 >  
搜索关键字:beauty world opencart 主题模板 abc-0046    ( 11400个结果
Swift 字符串和字符
swift中的字符串和字符都兼容unicode定义一个字符串let hello="hello world"初始化一个空的字符串let hello=""let hello=String()判断一个字符串是否为空if hello.isEmpty{println("这是个空字符串")}字符串可以使用+进行...
分类:编程语言   时间:2014-11-16 13:15:20    阅读次数:241
android存取数据方式:文件、SharedPreferences
android存取数据方式:文件、SharedPreferences、SQLite 数据库、Content provider 文件流: 使用java IO流对文件进行读写操作,文件权限默认。 指定文件权限写入:mode:文件权限MODE_PRIVATE的文件是应用程序私有的,MODE_WORLD_READABLE则所有应用程序都可以访问的, MODE_WORLD_WRITEABL...
分类:移动开发   时间:2014-11-16 10:45:25    阅读次数:215
Swift 基础
1.hello worldswift中的helloworld十分简单 println("hello world")即可完成hello world2.变量 常量swift的变量使用var关键字,常量使用let关键字比如:let max=10 // swift 一个语句结束可以不需要分号var logi...
分类:编程语言   时间:2014-11-15 21:41:07    阅读次数:240
redis-数据类型
Redis是一个数据结构类型的服务器,不是单纯的key-value存储。Redis里面的键是二进制安全的(二进制安全是指数据在传输过程中保证数据的安全性,包括加密等),因此键的内容不应该包含空格或者换行符。比如”hello world”和”hello world\n”是错误的。Keys1) DEL ...
分类:其他好文   时间:2014-11-15 20:07:39    阅读次数:221
Beginning Python From Novice to Professional (8) - 文件方法
文件方法 读写: #!/usr/bin/env python f = open('somefile.txt','w') f.write('Hello,') f.write('World!') f.close() f = open('somefile.txt','r') print f.read(5)Hello使用基本文件方法: #!/usr/bin/env python f = open(r...
分类:编程语言   时间:2014-11-15 15:32:37    阅读次数:218
[Erlang危机](5.1.4)端口port
PortIn a manner similar to processes, Ports should be considered. Ports are a datatype that encompasses all kinds of connections and sockets opened to the outside world: TCP sockets, UDP sockets, SCTP...
分类:其他好文   时间:2014-11-15 12:56:20    阅读次数:295
Python的一些小技巧
#coding:utf-8#数据交换x = 6y = 5 x, y = y, xprint xprint y#相当于:?print "hello" if False else "world"#一种方式绑定不同类型的数据 nfc = ["Packers", "49ers"]afc = ["Ravens...
分类:编程语言   时间:2014-11-14 22:24:52    阅读次数:323
不要创建非必要对象
原文地址:http://leihuang.net/2014/11/10/avoid-creating-unnecessary-objects/ 首先我们来看下面两个语句的区别: String s = new String("hello world!") ; String s = "hello world!" ; 当你循环调用上面两个语句的时候,你会发现:第一条语...
分类:其他好文   时间:2014-11-14 17:52:55    阅读次数:143
Windows下Apache添加SSL模块
参考资料:http://www.yuansir-web.com/2011/05/12/hello-world/测试环境:windows2003 32位 + Apache2.4 + PHP5.4一、准备工作 安装好 Apache + openssl win32openssl 下载地址 http://s...
分类:Windows程序   时间:2014-11-14 17:23:28    阅读次数:291
lua 函数回调技巧
技巧1:local a = {}; function b() print("Hello World") end a["sell"] = {callFunc =b} a["sell"].callFunc()技巧2:    使用lua 自带的 unpack :    解释:把一直数组(只有连续数字下标的 table)展开成一串返回值,但是对用字符串或别的东西做 key 的 table 无能为力。fu...
分类:其他好文   时间:2014-11-14 15:43:30    阅读次数:136
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!