Java面向对象(Object-Oriented) 本质:以类的方式组织代码,以对象的方式封装数据。 面向过程:步骤清晰简单,适合处理一些较为简单的问题 面向对象:物以类聚,分类的思维模式,思考问题首先解决问题需要哪些分类,然后对这些分类进行单独思考,最后才对某个分类下的细节进行面向过程的思考。 面 ...
分类:
编程语言 时间:
2021-07-05 17:07:48
阅读次数:
0
Form2 namespace WindowsFormsApp1 { //定义委托 public delegate void Sum(int x, int y); public partial class Form2 : Form { //定义事件 public event Sum sum; pub ...
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 ...
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.IO;using System.Linq;usi ...
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
macOS的一些猜想及验证 1.macOS可以将系统安装到USB外置磁盘中(建议使用SSD),实测运行十分稳定 需要注意的是: ①USB外置磁盘必须采用GUID分区表 ②最好将该USB外置磁盘单独占用一个Mac电脑的typec接口,不要使用拓展和别的usb设备接在一起,可能会导致不稳定。 2.Tim ...
分类:
系统相关 时间:
2021-07-01 16:46:35
阅读次数:
0