loading

摘要: 如果正在合并,没有出错可以使用:git merge --abort 打断恢复。 如果合并完成,出错了,可以使用:git reset --hard HEAD~1 回退到上一个提交,重新从远程 pull。 阅读全文
posted @ 2024-04-17 00:48 Himmelbleu 阅读(3) 评论(0) 推荐(0) 编辑
摘要: import { FC, useState } from 'react'; import type { SelectProps } from 'antd'; import { Select, Space, Flex, Input, Button } from 'antd'; /** * 扩展选择器组 阅读全文
posted @ 2024-04-13 17:58 Himmelbleu 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 安装 pnpm i react-router-dom 布局 布局组件用于定义应用程序的整体布局结构,决定如何将匹配的子路由渲染到指定的位置(通过 <Outlet />)。 file:[src/layouts/index.js] import { Outlet, Link } from "react- 阅读全文
posted @ 2024-04-02 12:39 Himmelbleu 阅读(4) 评论(0) 推荐(0) 编辑
摘要: 安装依赖 file:[安装依赖包] pnpm i @reduxjs/toolkit react-redux 同步操作 通过调用 createSlice 方法创建的 counterStore 对象包含了两个属性:actions 和 reducer。actions 对象包含了所有生成的 action c 阅读全文
posted @ 2024-03-31 23:58 Himmelbleu 阅读(4) 评论(0) 推荐(0) 编辑
摘要: 子组件向父组件通信 子组件调用 prop 函数,并传值。 父组件传递 prop 函数,通过回调函数获取值。 本质是通过回调函数进行子向父通信,子组件通过触发由父组件传递的 prop 函数,父组件执行该 prop 函数内的回调函数。 file:[子组件向父组件通信] function Son({ on 阅读全文
posted @ 2024-03-29 19:19 Himmelbleu 阅读(5) 评论(0) 推荐(0) 编辑
摘要: title:(打字机效果源码) cover:(https://img2020.cnblogs.com/blog/1957096/202005/1957096-20200527110106198-1974765350.jpg) link:(https://github.com/Himmeltala/w 阅读全文
posted @ 2024-03-24 02:29 Himmelbleu 阅读(9) 评论(0) 推荐(0) 编辑
摘要: 类似于 Linux 管道,上一个函数处理完成的结果交给下一个函数,而不是一个函数套一个函数。 def subtract_federal_tax(df): return df * 0.9 def subtract_state_tax(df, rate): return df * (1 - rate) 阅读全文
posted @ 2024-03-13 00:47 Himmelbleu 阅读(5) 评论(0) 推荐(0) 编辑
摘要: 大小写 大小写转换、首字母大写、英文书写格式、大小写反转的函数。pandas.Series.str.capitalize file:[例1] ser = pd.Series(['lower', 'CAPITALS', 'this is a sentence', 'SwApCaSe']) print( 阅读全文
posted @ 2024-03-13 00:35 Himmelbleu 阅读(2) 评论(0) 推荐(0) 编辑
摘要: file:[修改表格样式,边框和内边框,以及表格内的段落样式,WPS] Sub ChangeTableStyle() Dim tbl As Table Dim para As Paragraph For Each tbl In ActiveDocument.Tables With tbl ' 设置表 阅读全文
posted @ 2024-03-08 00:33 Himmelbleu 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 描述 DataFrame.loc 主要是基于标签的索引方式,但也可以使用布尔数组进行索引。 单个标签,例如 5 或 'a'(注意 5 被解释为索引的标签,并不是索引中的整数位置)。 标签的列表或数组,例如 ['a', 'b', 'c']。 使用标签的切片对象,例如 'a':'f'。 war:[sta 阅读全文
posted @ 2024-03-06 12:43 Himmelbleu 阅读(2) 评论(0) 推荐(0) 编辑