1:使用kvc存取对象属性如果要更改对象属性可以通过什么方法达到呢?(1)通过setter和getter方法。(2)属性。(3)直接设置实例变量。今天学习新的一种方法:键值编码-kvc。通过指定要访问的属性名字的字符串标识符,可以进行类的属性的读取和设置。键值编码基本调用包括:setValue:fo...
分类:
其他好文 时间:
2015-11-06 21:03:04
阅读次数:
297
有个需求:用户有一些邮件组不想要了,想删除,他自己整理了一下邮件组的中文名字和邮件组的邮件地址,可以通过一条命令简单的进行处理。操作很简单,具体可以看一下代码的备注#导入一个csv,文件,csv文件要求第一行写mail,以下每一行是一个邮件地址
Import-Csvc:\333.csv|fo..
分类:
移动开发 时间:
2015-11-05 16:52:24
阅读次数:
275
如何通讯?通过ajax,获取到的数据如何管理?大多数时候我会认为,完全没有必要,通过ajax获取数据以后,整个流程就已经结束了... 在基础数据维护或者大多数后台管理系统中,登陆的目的就是为了增删改,单独用ajax时,对于数据的修改,依赖于额外引入的一个变量'data'或者将其置入一个容器fo...
分类:
其他好文 时间:
2015-11-05 13:26:30
阅读次数:
190
-- https://fpga4u.epfl.ch/wiki/FPGA4U_Description-- The SDRAM is an ISSI IS42S32800B. With 32 bits data bus, validated by SDRAM_DQM signals, -- one fo...
分类:
其他好文 时间:
2015-11-04 09:23:24
阅读次数:
150
# Redis configuration file example# Note on units: when memory size is needed, it is possible to specifiy# it in the usual form of 1k 5GB 4M and so fo...
分类:
其他好文 时间:
2015-11-03 12:06:32
阅读次数:
275
Google基于Dart的新移动开发框架Flutter实际上就是以前的Sky SDK,基于Dart语言的移动开发框架,是React Native的竞争对手。官方网站 http://flutter.io/Flutter is a new way to build high-performance, cross-platform mobile apps. Flutter is optimized fo...
分类:
移动开发 时间:
2015-11-02 19:33:08
阅读次数:
202
Binary Tree Level Order TraversalGiven a binary tree, return thelevel ordertraversal of its nodes' values. (ie, from left to right, level by level).Fo...
分类:
编程语言 时间:
2015-11-01 12:42:54
阅读次数:
288
笔者系统环境,Ubuntu 14.04,输入法fcitx下搜狗输入法。其它非Ubuntu linux发行版,不通过软件源安装Qt5,从Qt官网http://qt-project.org/下载安装包,也存在这个问题。在Ubuntu下解决方法如下,其它linux发行版解决方法雷同1.安装fcitx fo...
分类:
其他好文 时间:
2015-11-01 10:12:13
阅读次数:
287
Givennnon-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap after raining.Fo...
分类:
其他好文 时间:
2015-10-30 07:03:53
阅读次数:
265
1.输出 print print 函数可以打印整数,浮点数,字符串 >>> print(5) // 打印整数 5 >>> print(5.1) // 打印浮点数 5.1 >>> print("hello") // 打印字符串 hello print 函数可以打印整数,浮点数,字符串 print(fo...
分类:
其他好文 时间:
2015-10-28 09:23:16
阅读次数:
145