上一页 1 ··· 3 4 5 6 7 8 下一页
摘要: import re st = 'asxxixxsaefxxlovexxsdwdxxyouxxde' #search()和 findall()的区别 a = re.search('xx(.*?)xxsaefxx(.*?)xxsdwdxx(.*?)xx',st) #print(a) #运行结果 # #group()方法 b = re.search('xx(.*?)xxsaefxx(.*?)x... 阅读全文
posted @ 2018-05-22 19:20 了解2号 阅读(2921) 评论(0) 推荐(0) 编辑
摘要: 贪心算法,非贪心算法 阅读全文
posted @ 2018-05-22 19:06 了解2号 阅读(1453) 评论(0) 推荐(0) 编辑
摘要: UIViewController的生命周期实质上是指根视图view从无到有的过程1.首先新建一个工程:不从mainstoryBoard加载(删除入口)在AppDelegate.m -->- (BOOL)application:(UIApplication *)application didFinis... 阅读全文
posted @ 2015-09-30 15:49 了解2号 阅读(203) 评论(0) 推荐(0) 编辑
摘要: CoreData用于做数据持久化,适合大数据量的存储和查询CoreData不是数据库CoreData可以使用数据库 ,XML等方式来存储数据CoreData使用面向对象的方式操作数据CoreData操作数据无需编写SQL语句使用时 需要导入CoreData框架//------------------... 阅读全文
posted @ 2015-09-27 14:52 了解2号 阅读(161) 评论(0) 推荐(0) 编辑
摘要: 使用第三方框架 XMPPFramework #import "ViewController.h"#import "XMPPFramework.h"@interface ViewController (){ XMPPStream *_stream; XMPPRoster *_roster;}@end... 阅读全文
posted @ 2015-09-24 17:20 了解2号 阅读(304) 评论(0) 推荐(0) 编辑
摘要: #import "ViewController.h"#import "DDXML.h"@interface ViewController ()@end@implementation ViewController/*解析XML:开源框架:KissXML 依赖:libxml2.2.dylib(项目配置-... 阅读全文
posted @ 2015-09-24 08:50 了解2号 阅读(261) 评论(0) 推荐(0) 编辑
摘要: //本地推送---无需网络,由本地发起 UILocalNotification *localNotification = [[UILocalNotification alloc]init];//设置推送时间间隔并开启推送fireDatelocalNotification.fireDate = [NS... 阅读全文
posted @ 2015-09-24 08:18 了解2号 阅读(172) 评论(0) 推荐(0) 编辑
摘要: GCD的使用一:队列1.串行队列:添加到队列中的任务是一个一个执行的2.并行(发)队列:添加到队列中的任务是多个同时执行的(一个队列中的多个任务可以同时执行)3.主队列:里面的任务都是在主线程执行的,可以理解为主队列就是串行队列的a56爆大奖在线娱乐4.全局队列:并行(发)队列二:同步、异步1、同步:需要后面的任务... 阅读全文
posted @ 2015-09-24 08:01 了解2号 阅读(225) 评论(0) 推荐(0) 编辑
摘要: #import "ViewController.h"@interface ViewController ()@end@implementation ViewController- (void)viewDidLoad { [super viewDidLoad]; /*-----------------... 阅读全文
posted @ 2015-09-24 07:58 了解2号 阅读(283) 评论(0) 推荐(0) 编辑
摘要: #import "ViewController.h"@interface ViewController ()@end@implementation ViewController- (void)viewDidLoad { [super viewDidLoad]; //开启多线程方法一// [self ... 阅读全文
posted @ 2015-09-24 07:52 了解2号 阅读(198) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 下一页