万物皆对象,在面向对象思想里,封装,继承,多态我们可能不会特别总视它。什么是面向对象?什么是封装,什么是继承?什么是多态?什么接口?什么是抽象?接口与抽象之间的关系?在面试过程中,我回答的支支吾吾,深刻发现到自己对面向对象没有一个系统的,深刻的理解,一切只停留在课本上,只有一个浅显的认识。在面试官的 ...
分类:
编程语言 时间:
2020-09-07 18:42:52
阅读次数:
36
public class MainTest { public static void main(String[] args) { //求sin值 double sin = Math.sin(3.14); System.out.println("sin3.14=" + sin); //求cos值 do ...
分类:
编程语言 时间:
2020-09-04 17:46:13
阅读次数:
87
作用:把不是通过路由切换过来的组件中,将react-router 的 history、location、match 三个对象传入props对象上 1. 默认情况下必须是经过路由匹配渲染的组件才存在this.props,才拥有路由参数,才能使用编程式导航的写法,执行this.props.history ...
分类:
其他好文 时间:
2020-09-04 17:41:32
阅读次数:
92
常用的软件设置代理方法Gitgitconfig--globalhttps.proxyhttp://127.0.0.1:1080gitconfig--globalhttps.proxyhttps://127.0.0.1:1080gitconfig--global--unsethttp.proxygitconfig--global--unsethttps.proxynpmconfigdeletepro
分类:
其他好文 时间:
2020-09-04 17:05:18
阅读次数:
54
https://www.cnblogs.com/daofaziran/p/12604879.html 错误提示: ERROR: Command errored out with exit status 1: command: /usr/bin/python3 -u -c 'import sys, s ...
分类:
其他好文 时间:
2020-09-04 17:01:31
阅读次数:
133
自己想了好一会,AC后看了下好像和网上挺多人思路不太一样(但本质是一样的),所以就来写这篇题解 首先这题之所以能反悔的根本原因和性质在于你在第i天买股票,第j天卖出,可以拆成第i天买股票,第k(i <= k <= j)天卖出和第k天买股票,第j天卖出两个过程(I) 我们首先可以从大到小倒序扫描,假设 ...
分类:
其他好文 时间:
2020-09-03 17:04:38
阅读次数:
37
1、默认配置SpringBoot默认帮我们配置好了日志; //记录器 Logger logger = LoggerFactory.getLogger(getClass()); @Test public void contextLoads() { //System.out.println();? //... ...
分类:
编程语言 时间:
2020-09-03 17:04:04
阅读次数:
43
AC代码: #include<bits/stdc++.h> using namespace std; void solve() { int n; cin >> n; if (n <= 30) cout << "no" << endl; else { if (n != 36 && n != 40 && ...
分类:
其他好文 时间:
2020-09-03 16:59:36
阅读次数:
43
package jdbca; import java.sql.Connection;import java.sql.DriverManager;import java.sql.PreparedStatement;import java.sql.SQLException;import java.sql ...
分类:
数据库 时间:
2020-08-31 13:07:56
阅读次数:
51
1.前言通常我们编写SpringMVC接口的范式是这样的:@RestController@RequestMapping("/v1/userinfo")publicclassUserInfoController{@GetMapping("/foo")publicStringfoo(){return"felord.cn";}}这种我都写吐了,今天换个口味,使用Spring5新引入的函数式端点(Func
分类:
编程语言 时间:
2020-08-28 14:59:27
阅读次数:
54