码迷,mamicode.com
首页 >  
搜索关键字:self    ( 14215个结果
基本数据类型
基本数据类型 - 整数 - 布尔值 - 字符串 - 列表 - 元组 - 字典 - 集合 一、字符串: capitalize() :字符串首字母变大写 casefold() #将所有大写转换为小写(原字符串不变) count(self, sub, start=None, end=None): #表示传 ...
分类:其他好文   时间:2017-05-12 22:05:58    阅读次数:239
同步多域名dig
#!/usr/bin/envpythonimportdns.resolverclassMydig:def__init__(self):self.data={}defget_dig_domain(self,domain_list):fordomainindomain_list:res=dns.resolver.query(domain,1)foriinres.response.answer:forjini.items:ifj.rdtype==5:find_res=j.to_text().find(‘***dns..
分类:其他好文   时间:2017-05-12 22:00:33    阅读次数:110
批量域名dig---使用协程
#!/usr/bin/envpython#_*_coding:utf-8_*_fromgeventimportmonkeyimportgeventimporttimeimportdns.resolvermonkey.patch_socket()classMyGeven:def__init__(self):self.data={}defget_dig_domain(self,domain):res=dns.resolver.query(domain,1)foriinres.response.answer:for..
分类:其他好文   时间:2017-05-12 21:57:06    阅读次数:180
iOS_7_scrollView大图缩放
终于效果图: BeyondViewController.h // // BeyondViewController.h // 7_scrollView大图展示 // // Created by beyond on 14-7-24. // Copyright (c) 2014年 com.beyond. ...
分类:移动开发   时间:2017-05-12 20:31:56    阅读次数:247
ios/oc banner广告位---- 打开浏览器跳转链接
//广告位 打开浏览器跳转链接 -(void)jumpToAdUrl:(UITapGestureRecognizer *)tap{ // self.ad_link_Str = @"http://www.baidu.com"; if (self.ad_link_Str.length > 0) { [[ ...
分类:移动开发   时间:2017-05-12 20:23:21    阅读次数:293
Day9 面向对象高级
1.Property 如下代码演示: import math class Circle: def __init__(self,radius): self.radius = radius def area(self): return math.pi*self.radius*self.radius de ...
分类:其他好文   时间:2017-05-12 16:34:33    阅读次数:254
Leetcode Best Time to Buy and Sell Stock II
class Solution: # @param {integer[]} prices # @return {integer} def maxProfit(self, prices): profit = 0; for i in xrange(1, len(prices)): if prices[i] ...
分类:其他好文   时间:2017-05-12 15:35:35    阅读次数:151
Weak关键字介绍
由浅入深先来看看最简单的一个例子:#import"ViewController.h"@interfaceViewController()@property(nonatomic,strong)idstrongPoint;@property(nonatomic,weak)idweakPoint;@end@implementationViewController-(void)viewDidLoad{ [superviewDidLoad];//self.strongPoint=[NS..
分类:其他好文   时间:2017-05-12 13:45:39    阅读次数:275
AR+医疗一大步!AR头显成功帮助弱视患者恢复视觉!
原文标题:AR+医疗一大步!AR头显成功帮助弱视患者恢复视觉! 近日,科在美国巴尔的摩举办的视觉与眼科学研究协会(ARVO)年度会议上,一批科学家们展示了最新的研究成果。科学家们儿成功的借助增强现实产品帮助弱视患者恢复了视觉功能。 在实验中,15名患有单眼弱视的成年人,并且该症状无法通过传统疗法治愈 ...
分类:其他好文   时间:2017-05-12 13:31:32    阅读次数:156
python ------- @property
学习python 首次打卡,@property @property给一个Screen对象加上width和height属性,以及一个只读属性resolution ...
分类:编程语言   时间:2017-05-12 13:23:58    阅读次数:224
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!