码迷,mamicode.com
首页 >  
搜索关键字:.property    ( 8449个结果
python基础语法15 组合,封装,访问限制机制,内置装饰器property
组合: 夺命三问: 1.什么是组合? 组合指的是一个对象中,包含另一个或多个对象。 2.为什么要用组合? 减少代码的冗余。 3.如何使用组合? 耦合度: 耦: 莲藕 > 藕断丝连 - 耦合度越高: 程序的可扩展性越低。 - 耦合度越低: 程序的可扩展性越高。 总结: - 继承: 继承是类与类的关系, ...
分类:编程语言   时间:2019-11-27 19:29:02    阅读次数:74
面向对象三大特性之封装
面向对象三大特性之封装 一、继承json模块,并派生出新的功能 继承json模块中的JSONEncoder,并派生出新的功能 二、组合 夺命三问 用组合去实现的实例 组合练习 三、封装 封装介绍 四、访问限制机制 访问限制机制 五、propetry property的应用 ...
分类:其他好文   时间:2019-11-27 19:19:35    阅读次数:59
python 字符串str和json格式转换
最近在写一个脚本,需要处理从excel中读取的数据,发现读取的json格式数据进行转换时报错 ValueError: Expecting property name enclosed in double quotes: line 1 column 2 (char 1)网上查了是因为json的key没 ...
分类:编程语言   时间:2019-11-27 19:16:13    阅读次数:83
Spring Security(11)——匿名认证
匿名认证 目录 1.1 配置 1.2 AuthenticationTrustResolver 对于匿名访问的用户,Spring Security支持为其建立一个匿名的AnonymousAuthenticationToken存放在SecurityContextHolder中,这就是所谓的匿名认证。这样 ...
分类:编程语言   时间:2019-11-27 19:03:18    阅读次数:73
PAT甲级——A1155 HeapPaths【30】
In computer science, a heap is a specialized tree-based data structure that satisfies the heap property: if P is a parent node of C, then the key (the ...
分类:移动开发   时间:2019-11-27 00:24:22    阅读次数:127
element 改变select form 清除表单验证
报错 TypeError: Cannot read property 'resetFields' of undefined resetForm(formName) { if (this.$refs[formName]!==undefined) { this.$refs[formName].reset ...
分类:其他好文   时间:2019-11-26 19:57:21    阅读次数:63
解决django或者其他线程中调用scrapy报ReactorNotRestartable的错误
官网中关于ReactorNotRestartable的错误描述(摘自:https://twistedmatrix.com/documents/16.1.0/api/twisted.internet.error.html),我们将从scrapy源码分析这个问题 重点要了解scrapy源码下的crawl ...
分类:编程语言   时间:2019-11-26 13:47:42    阅读次数:81
C#编程之WPF控件开发(十三)
今天我们开始着手上一篇文章提到的实现用户动态按钮功能。 同样我们对上一章的代码进行修改按键特效。首先我们将原来的按键样式代码删掉,修改如下代码: 1 <Window.Resources> 2 <Style TargetType="Button"> 3 <Setter Property="Templa ...
分类:Windows程序   时间:2019-11-26 13:42:30    阅读次数:84
js中对象的属性名和属性值
代码 / 对象的属性名 对象的属性名不强制遵循标识符的命名规范,可以是任意的名字,但在开发中 尽量遵循标识符的命名规范 / // 创建对象obj1 var obj1 = new Object(); // 添加属性name obj1.name = "唐僧"; console.log(obj1); // ...
分类:Web程序   时间:2019-11-26 13:13:25    阅读次数:230
jquery.datetimepicker中报错Cannot read property 'top' of undefined
今天在项目里用到一个jQuery的时间插件,一开始自己写的测试demo完全么的问题 但当我把它放到项目里时问题来了,报了一个错:Cannot read property 'top' of undefined html代码是这样的:↓ <div class="inputLine" > <input t ...
分类:Web程序   时间:2019-11-25 15:20:01    阅读次数:256
8449条   上一页 1 ... 80 81 82 83 84 ... 845 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!