码迷,mamicode.com
首页 >  
搜索关键字:self    ( 14215个结果
django之分页、cookie装饰器
一、分页代码如下 from django.utils.safestring import mark_safe class Page: def __init__(self, current_page, data_count, per_page_count=10, pager_num=7): self. ...
分类:其他好文   时间:2017-01-05 16:58:55    阅读次数:284
swif tableview全选
func selctAll() { idArr.removeAll() for var i = 0; i<sellingArr.count; i++ { let path: NSIndexPath = NSIndexPath(forRow: i, inSection: 0) self.tableVi ...
分类:其他好文   时间:2017-01-05 16:34:02    阅读次数:192
python 一个XML解析
‘‘‘ Version:0.5 author;wujianqiang date:2016/11/13 ‘‘‘ importxml.etree.ElementTreeasET fromcollectionsimportCounter frompprintimportpprint importjson fromfnmatchimportfnmatch importos classXMLParse(object): def__init__(self): self.data={} def_open_file(self..
分类:编程语言   时间:2017-01-05 12:22:50    阅读次数:189
对象-3.py
#coding: utf-8 class Member(object): member_nums = 0 def __init__(self,name,age,sex): self.name = name self.age = age self.sex = sex self.enroll() def ...
分类:其他好文   时间:2017-01-05 11:44:07    阅读次数:161
Django补遗(一)
链接MYSQL数据库 修改项目中的配置文件: NAME 即数据库的名字,在mysql连接前该数据库必须已经创建。USER 和 PASSWORD 分别是数据库的用户名和密码。设置完后,再启动我们的Django项目前,我们需要激活我们的mysql。然后,启动项目,会报错:no module named ...
分类:其他好文   时间:2017-01-05 11:41:47    阅读次数:153
iOS所有的子视图
for (id view in [self.view subviews]) { if ([view isEqual:[UITextField class]]) { NSLog(@"你想要?"); } } ...
分类:移动开发   时间:2017-01-05 09:58:54    阅读次数:183
python爬取数据保存入库
import urllib2 import re import MySQLdb class LatestTest: #初始化 def __init__(self): self.url="https://toutiao.io/latest" self.UserAgent='Mozilla/5.0 (W... ...
分类:编程语言   时间:2017-01-05 09:52:16    阅读次数:262
数组中的每一个对象执行一次方法:makeObjectsPerformSelector
1, 为数组中的每一个button添加点击事件; [_buttonArray makeObjectsPerformSelector:@selector(addTarget:self action:(orderKind:) forControlEvents:UIControlEventTouchUpI ...
分类:编程语言   时间:2017-01-05 09:00:12    阅读次数:181
UIAlertController使用
//1创建弹框控制器 UIAlertController *alertVc = [UIAlertController alertControllerWithTitle:@"亲,确定要滚吗?" message:nil preferredStyle:UIAlertControllerStyleActio... ...
分类:其他好文   时间:2017-01-05 08:59:12    阅读次数:222
Best 3D Modeling software under Ubuntu
Blender Blender is the best free and open source 3D modelling program out there by a long shot! The program is under constant development, has a huge ...
分类:系统相关   时间:2017-01-05 07:55:44    阅读次数:208
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!