这次是之二:实例化对象、接口与父类、修饰符和属性。实例化对象之前我们讲解过创建对象的方式,有new、克隆、反序列化,再加一种,根据Class对象,使用newInstance()或者构造器实例化对象。调用以下api即可//获取源头Class<?>clz=Class.forName("com.shsxt.ref.simple.User");//第一种:通过newInstance()创建对象
分类:
编程语言 时间:
2020-08-26 17:14:20
阅读次数:
58
官方的demo是这样的:地址:[http://lbs.amap.com/api/javascript-api/example/infowindow/add-infowindows-to-multiple-markers] <script type="text/javascript"> //初始化地图 ...
分类:
其他好文 时间:
2020-08-25 18:46:38
阅读次数:
161
Linux pip安装速度慢(超时报错),为pip换源 mkdir -p ~/.pip/ vim pip.conf pip.conf中内容如下: [global] index-url=http://mirrors.aliyun.com/pypi/simple/ [install] trusted-h ...
分类:
系统相关 时间:
2020-08-25 18:29:01
阅读次数:
88
1. 环境搭建 1.1 创建虚拟环境 # 如果当前系统中没有虚拟环境,则使用以下命令安装虚拟环境: # pip3 install virtualenv -i https://pypi.tuna.tsinghua.edu.cn/simple # pip3 install virtualenvwrapp ...
分类:
其他好文 时间:
2020-08-20 19:25:45
阅读次数:
112
求阶乘第一版 由于数组长度采用递归,数据太大内存不够。 package com.example.common.factorial; /** * 求阶乘. * 基于jvm运行内存有限。大概12000以上的数字由于递归占用会有溢出错误。 * 且本方法不考虑非法情况,默认用户正确输入正整数。 * main ...
分类:
其他好文 时间:
2020-08-20 18:46:05
阅读次数:
44
★使用nslookup时,使用如下镜像。下载地址:wget https://kubernetes.io/examples/admin/dns/busybox.yaml 1 piVersion: v1 2 kind: Pod 3 metadata: 4 name: busybox 5 namespac ...
分类:
Web程序 时间:
2020-08-18 15:44:22
阅读次数:
133
安装环境 操作系统:64位Windows10家庭版 虚拟机:Virtualbox Linux系统:Ubuntu20.04.1-desktop-amd64 安装流程 Virtualbox安装 Virtualbox下载 安装过程中可以更换安装路径,其他选项默认就好! Ubuntu.iso下载 Ubunt ...
分类:
系统相关 时间:
2020-08-17 17:51:28
阅读次数:
132
Given a binary tree, return the inorder traversal of its nodes' values. Example: Input: [1,null,2,3] 1 \ 2 / 3 Output: [1,3,2] Follow up: Recursive so ...
分类:
其他好文 时间:
2020-08-17 17:50:25
阅读次数:
81
Esp8266 Web Server 应用实例 - Simple Web Console,本文旨在向读者介绍使用Esp8266 WiFi板搭建Web Server应用的原理。示例向读者展示了如何创建Web Console,以及如何使Web Console与NodeMcu进行交互。
分类:
Web程序 时间:
2020-08-13 12:22:48
阅读次数:
85
This example shows how to implement the HARQ Indicator (HI) and physical HI channel (PHICH). You create the processing chain of coding hybrid indicato ...
分类:
其他好文 时间:
2020-08-13 12:11:36
阅读次数:
61