Java面向对象(Object-Oriented) 本质:以类的方式组织代码,以对象的方式封装数据。 面向过程:步骤清晰简单,适合处理一些较为简单的问题 面向对象:物以类聚,分类的思维模式,思考问题首先解决问题需要哪些分类,然后对这些分类进行单独思考,最后才对某个分类下的细节进行面向过程的思考。 面 ...
分类:
编程语言 时间:
2021-07-05 17:07:48
阅读次数:
0
import axios from 'axios'; import iView from 'iview'; const baseApiObj = { production: 'https://imzt.bndxqc.com/api', experience: 'https://imztty.bndx ...
分类:
Web程序 时间:
2021-07-05 16:58:57
阅读次数:
0
Python中的seek函数 seek函数通常与readline函数结合在一起 readline只能读取文件一行 与seek函数结合在一起就可以实现读取整个文件的内容 f = open("A.txt", "rb")//使用seek函数读取文件必须使用b模式选项打开文件f.seek(0)print(' ...
分类:
编程语言 时间:
2021-07-05 16:38:37
阅读次数:
0
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.IO;using System.Linq;usi ...
一、装饰器介绍 1.1 为什么要用装饰器 1.2 什么是装饰器 二、装饰器的实现 2.1 无参装饰器的实现 2.2 有参装饰器的实现 一、装饰器介绍 为何要用装饰器 软件的设计应该遵循开放封闭原则,即对扩展是开放的,而对修改是封闭的。对扩展开放,意味着有新的需求或变化时,可以对现有的代码进行扩展,以 ...
分类:
其他好文 时间:
2021-07-02 16:13:46
阅读次数:
0
select trigger_name as '名称' ,event_object_schema as'所属库',event_object_table as'所属表',event_manipulation as '触发事件',action_timing as '触发??器时机',action_sta ...
分类:
数据库 时间:
2021-07-02 16:12:53
阅读次数:
0
var user = { name:"angdh", age:11, }; console.log( JSON.stringify(Object.getOwnPropertyDescriptors(user),null,2) ); { "name": { "value": "angdh", "wri ...
分类:
Web程序 时间:
2021-07-02 16:01:40
阅读次数:
0
from pandas import DataFrame,Series import pandas as pd import numpy as np ages = [20, 22, 25, 27, 21, 23, 37, 31, 61, 45, 41, 32] bins = [18,25,35,60 ...
分类:
其他好文 时间:
2021-07-02 15:25:42
阅读次数:
0
created on 21/03/04 this是什么 任何函数本质上都是通过某个对象来调用的,未直接指定就是window 所有函数内部都有一个this this的值是调用函数的当前对象 如何确定this的值 test():window p.test():p new test():新创建的对象 p. ...
分类:
其他好文 时间:
2021-07-01 17:25:30
阅读次数:
0
前言 需求:有这样一个数组[10, 20, 110, 200, 60, 30, 40] 1.筛选出数组中小于100的元素 2.将筛选出的每个元素的值x2 3.完成第2步之后,将数组中的所有元素加起来 普通方法 如果我们还没接触过filter、map、reduce,那么就是用for循环 <script ...
分类:
编程语言 时间:
2021-07-01 16:21:52
阅读次数:
0