redis中最见到的数据结构,它既可以存储文字(比如“hello world”),又可以存储数字(比如整数10086和浮点数3.14),还可以存储二进制数据(比如10010100) redis为这几种类型的值分别设置了相应的操作命令,让用户可以针对不同的值做不同的处理 1.基本操作 为字符串键设置值 ...
分类:
其他好文 时间:
2018-09-19 16:18:21
阅读次数:
141
一 python生成器 1 生成器的本质就是迭代器.(可迭代对象) 生成器由生成器函数来创建或者通过生成器表达式来创建 def p(): print("hello world !") yield gen = p() # gen就是一个生成器,每次取p()都会是一个新的生成器 gen_other = ...
分类:
编程语言 时间:
2018-09-18 20:42:05
阅读次数:
143
使用Dialog的实现方式,解决原ActionSheet使用Fragment实现而出现的部分手机取消按钮被遮盖的问题 java部分代码: 所用到的布局文件:dialog_actionsheet.xml 代码中使用: 存在的部分资源文件: 1)slt_as_ios7_other_bt_single.x ...
分类:
移动开发 时间:
2018-09-18 19:04:02
阅读次数:
199
环境准备 brew install carthage npm i g ios deploy brew install libimobiledevice HEAD brew install ideviceinstaller 使用brew安装时,如果出现update home brew 直接contro ...
分类:
移动开发 时间:
2018-09-18 16:07:06
阅读次数:
255
Json 全称JavaScript Object Notation,是一种轻量级的数据交换格式。 本质就是具有特定格式的字符串,完全独立于编程语言,其传输有效性比XML 数据传输的有效性高,并且流量消耗更低,被大量使用,但是其语义性相对XML 较差,不如XML直观, 但是差别不大。 具有良好的可读和 ...
分类:
Web程序 时间:
2018-09-18 12:33:42
阅读次数:
173
关于列表更多的内容 Python 的列表数据类型包含更多的方法。这里是所有的列表对象方法: list.append(x) 把一个元素添加到列表的结尾,相当于 a[len(a):] = [x]。 list.extend(L) 将一个给定列表中的所有元素都添加到另一个列表中,相当于 a[len(a):] ...
分类:
其他好文 时间:
2018-09-17 22:59:51
阅读次数:
197
1.if 条件 2.choose , when 和 otherwise条件 3.where 条件 4.trim 条件 5.forEach循环 6.set 条件 if:有条件的包含where子句的一部分;比如: choose、when、otherwise,例子如下: where:例子如下: trim和 ...
分类:
数据库 时间:
2018-09-17 22:11:14
阅读次数:
236
今天遇到的字符串处理的问题,记录一下方便使用 1 str1 = input('请输入一个字符:') 2 #初始化字符、数字、空格、特殊字符的计数 3 lowercase = 0 4 uppercase = 0 5 number = 0 6 space = 0 7 other = 0 8 for st ...
分类:
编程语言 时间:
2018-09-17 13:27:51
阅读次数:
304
According to the According to the police inspector, police inspector, Edward John Billings, Edward John Billings, there are too many there are too man ...
分类:
其他好文 时间:
2018-09-16 20:59:01
阅读次数:
147
There is a travel agency in Adelton town on Zanzibar island. It has decided to offer its clients, besides many other attractions, sightseeing the town ...
分类:
其他好文 时间:
2018-09-16 18:40:01
阅读次数:
171