摘要: 一、Python安装 在Mac系统下,系统自带python开发环境,打开终端,输入python,我们就可以看到当前python版本号,例如我的系统是OS X EI Caption 10.11.1,自带的python版本是2.7。 目前python已经更新到3.6,因为python3和python2做 阅读全文
posted @ 2016-08-16 18:54 WCCW 阅读(1771) 评论(0) 推荐(0) 编辑
摘要: 一、网络爬虫 网络爬虫又被称为网络蜘蛛(🕷️),我们可以把互联网想象成一个蜘蛛网,每一个网站都是一个节点,我们可以使用一只蜘蛛去各个网页抓取我们想要的资源。举一个最简单的例子,你在百度和谷歌中输入‘Python',会有大量和Python相关的网页被检索出来,百度和谷歌是如何从海量的网页中检索出你想 阅读全文
posted @ 2016-08-15 12:35 WCCW 阅读(17280) 评论(10) 推荐(22) 编辑
摘要: // 8 day(2016/8/11) 38. In python , it is oop. class Baskball: def setName(self, name): self.name = name def kick(self): print('my name is %s' % self. 阅读全文
posted @ 2016-08-12 08:52 WCCW 阅读(317) 评论(0) 推荐(0) 编辑
摘要: 35. In python, file operation syntax is similar to c. open(file,'r',……) //the first parameters is necessary, other is optional ,the second parameters 阅读全文
posted @ 2016-08-09 23:13 WCCW 阅读(308) 评论(0) 推荐(0) 编辑
摘要: //sixth day to study python(2016/8/7) 32. In python , there are have an special type dictionary , it is same with oc. such as: dicOne = {'wyg':'write 阅读全文
posted @ 2016-08-07 17:36 WCCW 阅读(400) 评论(0) 推荐(0) 编辑
摘要: //fourth day to study python 24. In python , how to create funcation. we can use def to define funcation. such as: def MyFirstFuncation(): print('this 阅读全文
posted @ 2016-08-06 23:46 WCCW 阅读(322) 评论(0) 推荐(0) 编辑
摘要: //this is my first day to study python, in order to review, every day i will make notes (2016/7/31) 1. In python , there are many bulit-in funcation. 阅读全文
posted @ 2016-08-02 00:04 WCCW 阅读(490) 评论(0) 推荐(0) 编辑
摘要: RegexKitLite是什么? RegexKitLite是一个非常方便的处理正则表达式的第三方类库。 本身只有一个RegexKitLite.h和RegexKitLite.m 导入RegexKitLite可能会出现什么错误? 我们在arc的情况下直接导入会报20个错误,错误如下: 我们需要在Buil 阅读全文
posted @ 2016-04-10 15:00 WCCW 阅读(1202) 评论(0) 推荐(1) 编辑
摘要: 数据库操作是我们使用十分频繁的一份操作,在iOS中如何使用数据库,使用什么数据库,是我们不得不考虑的一个问题。 小型数据我们可以使用plist文件,或者NSUserDefaults存储。数据量比较多得情况下,我们可以使用sqlite或者Core Data. 在此先介绍一下sqlite的系统API,然 阅读全文
posted @ 2015-12-03 15:03 WCCW 阅读(728) 评论(1) 推荐(1) 编辑
摘要: 一、CALayer 1.CALayer CALayer属于QuartzCore.framework框架,从Xcode5起我们不必要手动导入这个库。 CALayer我们可以简单理解为一个层。当我们绘制的UIView能在屏幕显示,其实质是因为这个层。 我们下面通过代码理解一下CALayer的基本用法。 阅读全文
posted @ 2015-10-31 18:35 WCCW 阅读(955) 评论(0) 推荐(0) 编辑