Given an array of n integers where n > 1, nums, return an array output such that output[i] is equal to the product of all the elements of nums except ...
分类:
编程语言 时间:
2017-09-08 10:14:57
阅读次数:
231
程序启动时查找所有注册了的apps.py 会执行def ready方法MyAdmin.apps.py: def ready(self): super(MyadminConfig,self).ready() from django.utils.module_loading import autodis ...
分类:
其他好文 时间:
2017-09-08 00:16:15
阅读次数:
245
题目: Given a non-negative integer represented as a non-empty array of digits, plus one to the integer. You may assume the integer do not contain any le ...
分类:
其他好文 时间:
2017-09-07 23:04:30
阅读次数:
160
创建一个继承于uiimageview的子试图 在头文件中添加手势 @interface LXQuaereEditImageView : LXBaseImageView <UIGestureRecognizerDelegate> @property (nonatomic,strong,readonly ...
分类:
其他好文 时间:
2017-09-07 18:11:09
阅读次数:
155
右键点击开始,在菜单中选择打开命令提示符,以管理员的权限打开。 右键点击开始,在菜单中选择打开命令提示符,以管理员的权限打开。 然后输入命令netsh wlan show profile显示以前此电脑连接过的所有WIFI记录配置信息。 确定要查看的WIFI对应的密码,输入netsh wlan exp ...
在类中的私有属性设置: class Name(): __init__(self): self.__name = 'arnol'` 如何查看: 1,在类中定义一个方法: def getname(self): print(self.__name) 2.强制访问: n = Name() print(n._ ...
分类:
其他好文 时间:
2017-09-07 13:30:06
阅读次数:
105
面向对象的特点 和 自己的感悟 1._init_是构造函数,给实例变量(静态变量赋值,属性)赋值 2.self 代表是把实例传进去,谁调用就把谁传进去 3.构造函数 中的实例变量,存在实例的内存空间里 4.类中的方法,类的变量。存在类的内存空间里 5.类的变量,对所有实例(对象)都是有用的,但同名的 ...
分类:
编程语言 时间:
2017-09-07 09:56:02
阅读次数:
186
import math class Vector(object): def __init__(self, angle_rad): self.set_angle_rad(angle_rad) def get_angle_rad(self): return math.radians(self._angl... ...
分类:
其他好文 时间:
2017-09-06 19:37:21
阅读次数:
163
在子页面中设置 1.可传递参数 window.dialogArguments 2 返回值 window.returnValue 基本介绍: showModalDialog() (IE 4+ 支持) showModelessDialog() (IE 5+ 支持) window.showModalDia ...
XPath可以快速定位到Xml中的节点或者属性。XPath语法很简单,但是强大够用,它也是使用xslt的基础知识。 示例Xml: XPath的语法: 1. XPath中的符号 符号 说明 示例 示例说明 / 表示从根节点开始选择 /pets 选择根节点pets 表示节点和子节点之间的间隔符 /pet ...