react learn road the
Machine Learning for Beginners(scikit-learn module)
Machine Learning Common Lifycycle Import the Data Clean the Data Split the Data into Training/Test Sets Create a Model Train the Model Make Prediction ......
React Tutorials for Beginners
Get Started React Tutorials, Mosh, Youtube 1. 创建项目 npm create vite@latest 2. 通过 npm 安装 bootstrap npm i bootstrap@5.2.3 main.tsx 引入全局 Bootstrap CSS imp ......
CodeForces 1149D Abandoning Roads
洛谷传送门 CF 传送门 考虑一条 \(1 \to i\) 的路径是否在最小生成树上。 称边权为 \(a\) 的边为轻边,边权为 \(b\) 的边为重边。 轻边若不成环则一定在最小生成树上,因此先把轻边合并,这样形成了若干连通块。 那么如果两点在一个连通块,它们只能通过轻边互达。 同时,因为是树上路 ......
01-React-父子组件通讯
父子组件通讯 父组件将方法传递给子组件,在 React 当中也会将父组件传递的,数据和函数信息直接存放在子组件当中,的 Props 属性对象当中 React 的父子组件通讯的实现其实就是利用,函数的互相调用进行实现完成的 Header.js: import React from 'react'; i ......
01-React-组件-Ref
React 中获取元素的方式 字符串 对象 回调函数 官方文档:https://zh-hans.reactjs.org/docs/refs-and-the-dom.html#gatsby-focus-wrapper 第一种 传统方式(在 React 中及其不推荐) import React from ......
01-React-组件-setState
setState 是如何给 state 赋值的 通过 Object.assign() import React from 'react'; class Home extends React.Component { constructor(props) { super(props); this.sta ......
01-React-组件-TransitionGroup
TransitionGroup 的作用,博主用通俗易懂的话来讲就是一个一组元素添加动画,在我们的实际开发当中有时可能会有这么一个需求就是,在一个页面上,有添加和删除,在做这些操作的时候需要都带上动画,那么这个时候就可以使用 TransitionGroup 来快速实现。 案例 App.js: impo ......
01-React-生命周期-执行时机
生命周期概述 事物从生到死的过程, 我们称之为生命周期 什么是生命周期方法 事物在从生到死过程中, 在特定时间节点调用的方法, 我们称之为生命周期方法 例如像我们人类,从生到死的过程有这么几个特定的时间点,就是上,幼儿园,小学,中学... React 组件生命周期方法 组件从生到死的过程, 在特定的 ......
01-React-父子组件通讯-函数式组件
在了解父子组件通讯这个知识点的时候,首先要说明清楚一点内容就是什么是父组件什么是子组件,在上一篇 React-组件开篇 当中我们在 App.js 类组件当中使用到了其它的一些组件,那么 App 就是父组件,被 App 所使用的就是子组件,了解了什么是父子组件之后,介绍要来介绍一下它们之间该如何进行通 ......
01-React-组件-CSS模块化
Css Module (推荐) React 的脚手架已经内置了 css modules 的配置: .css/.less/.scss 等样式文件都修改成 .module.css/.module.less/.module.scss 等; 在以前我们的文件是这样的 index.css 如果使用了 CSS ......
React面试
1.什么是虚拟DOM?虚拟DOM是真实DOM在内存中的表示,ul的表示形式保存在内存中,并且与实际的DOM同步,这是一个发生在渲染函数被调用和元素在屏幕上显示的步骤,整个过程被称为调和 2.类组件和函数组件之间的区别是什么?类组件可以使用其他特性,如状态和生命周期钩子,并且他有this 函数组件只能 ......
React的onChange事件支持冒泡
React的合成事件,所有事件都冒泡到document,带来的一个方便的地方就是,原本原生事件不支持冒泡的,在React中都支持冒泡 例如 focus,blur,change,submit,reset,select 等事件不支持冒泡, 但是在 React中,可以使用同名的合成事件来支持冒泡,这样可以 ......
Learn Everyday English for Speaking
专有名词 salmon:三文鱼 chocolate fountain:巧克力喷泉 drum and bass: 鼓和贝斯 Spaghetti:意大利面 adrenaline:肾上腺素 首句English You're telling me? 还用你说。这是一个表示“你不用告诉我,我已经知道了”的表达 ......
CF842A Kirill And The Game
如果考虑 \([x,y]\) 中什么位置能乘到 \([l,r]\) 就比较麻烦,简单的做法是考虑 \(l\) 和 \(r\) 对应到 \([x,y]\) 中的位置。左边界至少是 \(\frac{l-1}{k}+1\),右边界至多是 \(\frac{r}{k}\),判断一下与 \([x,y]\) 是否 ......
How to use a shell script to check whether a command had been installed in the Linux server All In One
How to use a shell script to check whether a command had been installed in the Linux server All In One
shell script error [: :需要整数表达式 / [: -eq:需要一元表达... ......
react 创建项目
创建文件夹 使用vscode打开 1. 创建react脚手架 npm install -g create-react-app 2.创建react脚手架 create-react-app reactming (reactming 是我的项目名) 执行命令: cd reactming再执行: npm s ......
模型转onnx遇到问题,报错 1. _thnn_fused_lstm_cell , 2._thnn_fused_gru_cell, 3. Exporting the operator numpy_T to ONNX opset version 11 is not supported.
目录GRULSTMExporting the operator numpy_T to ONNX opset version 11 is not supported RuntimeError: Exporting the operator _thnn_fused_lstm_cell to ONNX o ......
currently, chromedriver 114.0.5735.90 is recommended for chrome 114.*, so it is advised to delete the driver in PATH and retry
报错原因是驱动和浏览器不匹配 解决办法 1.下载低版本的谷歌浏览器 本次使用的是114 下载地址: https://downzen.com/en/windows/google-chrome/download/11405735199/ 2.下载谷歌浏览器的插件 https://registry.npm ......
Learn Git in 30 days—— 第 23 天:修正 commit 过的版本历史记录 Part 5
写的非常好的一个Git系列文章,强烈推荐 原文链接:https://github.com/doggy8088/Learn-Git-in-30-days/tree/master/zh-cn 我们上一篇文章谈到的 Rebase 是用来将现有的两个分支进行「重新指定基础版本」,执行 Rebase 之后,也 ......
javascript: The Best Guided Tour Plugin
Best Tour Plugins To Guide Visitors Through Your Apphttps://yonkov.github.io/post/display-shepherd-only-once/https://www.jqueryscript.net/blog/best-gu ......
react native 使用 KeyboardAvoidingView 无效
组件介绍: 该组件将根据键盘高度自动调整其高度、位置或底部填充,以在显示虚拟键盘时保持可见。 官方文档: KeyboardAvoidingView 文档地址 遇到的问题: KeyboardAvoidingView 标签要设置 behavior={Platform.OS "ios" ? "paddin ......
Cannot initiate the connection to cn.archive.ubuntu.com:80 (2403:2c80:5::6). - connect (101: Network is unreachable)
版本:ubuntu 22.04 Cannot initiate the connection to cn.archive.ubuntu.com:80 (2403:2c80:5::6). - connect (101: Network is unreachable) 嗯,被墙了。找到 /etc/apt ......
The 2021 China Collegiate Programming Contest (Harbin) JBEID
The 2021 China Collegiate Programming Contest (Harbin) JBEID J. Local Minimum 模拟 题意:一个数当且仅当它是当前列最小值同时也是当且行的最小值它才算入贡献。 思路:直接\(for\),预处理出每一行每一列的最小值,然后去\ ......
react的todolist
React的todolist src/main.jsx import React from 'react' import ReactDOM from 'react-dom/client' import App from './App.jsx' import './index.css' ReactDO ......
react的todolist拆分项目
React的todolist的拆分项目 TodoList.jsx import Todo from "./Todo" export default function TodoList({ todos, toggleTodo, deleteTodo }) { return <> <ul> { todo ......
CF671D Roads in Yusland
1D8 ya。 设 \(f_{u,i}\) 表示覆盖了 \(u\) 子树并且向上覆盖到了深度为 \(i\) 的最小代价。 考虑合并儿子 \(v\): \[f'_{u,i}\gets \min\left(f_{u,i}+\min\limits_{j=1}^nf_{v,j},f_{v,i}+\min\l ......
org/springframework/boot/maven/RepackageMojo has been compiled by a more recent version of the Java
项目场景:项目中执行clean,再执行install时报错,错误如下 org/springframework/boot/maven/RepackageMojo has been compiled by a more recent version of the Java Runtime (class ......
nuxt 项目 certificate has expired 或 nuxt unable to verify the first certificate
plugins/axios.js const https = require('https') export default function ({ $axios}){ $axios.create({ httpsAgent: new https.Agent({ rejectUnauthorized: ......
How to print a string with a variable by using the echo command in the shell script All In One
How to print a string with a variable by using the echo command in the shell script All In One
Node.js & nvm
......
使用 sudo apt-get update 命令时出现 Certificate verification failed: The certificate is NOT trusted.
命令: sudo apt-get update 问题:Certificate verification failed: The certificate is NOT trusted. Try installing ca-certificates. 忽略:1 https://professional- ......