一.定义装饰器就是一个给对象添加额外功能的函数,其本质是函数。它的基本构造:高阶函数+函数嵌套+闭包。基础知识讲解详见:http://blog.51cto.com/10836356/2095118二.简单类的装饰器我们先看简单的类的装饰器,如果我们需要给任意一个类添加一个打印功能,即:没当操作这个类时,就打印”定义了一个装饰类函数”,见下图:@Decorator#相当于执行School=Decor
                            
                            
                                分类:
编程语言   时间:
2018-05-03 23:59:40   
                                阅读次数:
381
                             
                    
                        
                            
                            
                                    https://www.cnblogs.com/tongkey/p/7170826.html https://www.w3cschool.cn/javadesignpattern/e1w91ihr.html 设计模式之观察者模式(Observer Pattern) 1.定义、概念 2.实现方式 3. ...
                            
                            
                                分类:
其他好文   时间:
2018-05-03 22:15:32   
                                阅读次数:
163
                             
                    
                        
                            
                            
                                    Discription Smart Beaver decided to be not only smart, but also a healthy beaver! And so he began to attend physical education classes at school X. In ...
                            
                            
                                分类:
其他好文   时间:
2018-05-02 21:12:41   
                                阅读次数:
164
                             
                    
                        
                            
                            
                                SELECT school_code,`name`,phone from student WHERE login_name REGEXP 'ning$'LIMIT 10; concat() SELECT CONCAT(school_code,`name`) from student WHERE lo ...
                            
                            
                                分类:
其他好文   时间:
2018-05-02 20:55:37   
                                阅读次数:
194
                             
                    
                        
                            
                            
                                #第三方模块#1.安装#软件管理工具pip3#pip3添加到环境变量#pip3 install requests#2、源码安装#下载代码,安装#首先得进入到下载的文件夹的目录下,安装命令python setup.py install即可进行安装import requests#1.json#如何安装第 ...
                            
                            
                                分类:
其他好文   时间:
2018-05-01 23:56:35   
                                阅读次数:
293
                             
                    
                        
                            
                            
                                spss、stata编程作业代写、代写R Code? INSTRUCTIONS:– This assignment is worth 15% of your overall marks for this course (for all students, enrolled inSTAT2008, S ...
                            
                            
                                分类:
其他好文   时间:
2018-04-30 23:26:48   
                                阅读次数:
397
                             
                    
                        
                            
                            
                                    麦子学院 http://www.maiziedu.com/course/916/ 慕课网-vue.js入门基础 https://www.imooc.com/learn/694 查阅的网址 http://www.runoob.com/vue2/vue-tutorial.html 全栈开发:vue全家桶 ...
                            
                            
                                分类:
Web程序   时间:
2018-04-29 17:47:29   
                                阅读次数:
233
                             
                    
                        
                            
                            
                                    School of Computer Science The University of Adelaide Artificial Intelligence Assignment 2 Semester 1, 2018 due 11:55pm, Thursday 14th May 2018 Introd ...
                            
                            
                                分类:
编程语言   时间:
2018-04-28 10:51:07   
                                阅读次数:
195
                             
                    
                        
                            
                            
                                    1 #coding=utf-8 2 #Version:python 3.6.0 3 #Tools:Pycharm 2017.3.2 4 _date_ = '2018/4/26/026 9:51' 5 _author_ = '洪勇' 6 7 class school(object): 8 def __ ...
                            
                            
                                分类:
编程语言   时间:
2018-04-26 13:19:41   
                                阅读次数:
159
                             
                    
                        
                            
                            
                                    一、时间戳 简单讲,unix时间戳就是从1970-01-01开始所经过的秒数,什么时候获取时间戳,就是到那个时间点所经历的秒数。 二、JavaScript获取时间戳 根据时间戳的定义,可以使用javascript中的几个方法来获取系统当前的时间戳: 1、getTime() w3c school的解释 ...
                            
                            
                                分类:
其他好文   时间:
2018-04-26 01:29:54   
                                阅读次数:
264