Kali 软件管理测试案例
案例1 :显示目录树 tree
┌──(root㉿kali)-[~]
└─# tree --help
usage: tree [-acdfghilnpqrstuvxACDFJQNSUX] [-L level [-R]] [-H baseHREF][-T title] [-o filename] [-P pattern] [-I pattern] [--gitignore][--gitfile[=]file] [--matchdirs] [--metafirst] [--ignore-case][--nolinks] [--hintro[=]file] [--houtro[=]file] [--inodes] [--device][--sort[=]<name>] [--dirsfirst] [--filesfirst] [--filelimit #] [--si][--du] [--prune] [--charset[=]X] [--timefmt[=]format] [--fromfile][--fromtabfile] [--fflinks] [--info] [--infofile[=]file] [--noreport][--version] [--help] [--] [directory ...]------- Listing options --------a All files are listed.-d List directories only.-l Follow symbolic links like directories.-f Print the full path prefix for each file.-x Stay on current filesystem only.-L level Descend only level directories deep.-R Rerun tree when max dir level reached.-P pattern List only those files that match the pattern given.-I pattern Do not list files that match the given pattern.--gitignore Filter by using .gitignore files.--gitfile X Explicitly read gitignore file.--ignore-case Ignore case when pattern matching.--matchdirs Include directory names in -P pattern matching.--metafirst Print meta-data at the beginning of each line.--prune Prune empty directories from the output.--info Print information about files found in .info files.--infofile X Explicitly read info file.--noreport Turn off file/directory count at end of tree listing.--charset X Use charset X for terminal/HTML and indentation line output.--filelimit # Do not descend dirs with more than # files in them.-o filename Output to file instead of stdout.------- File options --------q Print non-printable characters as '?'.-N Print non-printable characters as is.-Q Quote filenames with double quotes.-p Print the protections for each file.-u Displays file owner or UID number.-g Displays file group owner or GID number.-s Print the size in bytes of each file.-h Print the size in a more human readable way.--si Like -h, but use in SI units (powers of 1000).--du Compute size of directories by their contents.-D Print the date of last modification or (-c) status change.--timefmt <f> Print and format time according to the format <f>.-F Appends '/', '=', '*', '@', '|' or '>' as per ls -F.--inodes Print inode number of each file.--device Print device ID number to which each file belongs.------- Sorting options --------v Sort files alphanumerically by version.-t Sort files by last modification time.-c Sort files by last status change time.-U Leave files unsorted.-r Reverse the order of the sort.--dirsfirst List directories before files (-U disables).--filesfirst List files before directories (-U disables).--sort X Select sort: name,version,size,mtime,ctime.------- Graphics options --------i Don't print indentation lines.-A Print ANSI lines graphic indentation lines.-S Print with CP437 (console) graphics indentation lines.-n Turn colorization off always (-C overrides).-C Turn colorization on always.------- XML/HTML/JSON options --------X Prints out an XML representation of the tree.-J Prints out an JSON representation of the tree.-H baseHREF Prints out HTML format with baseHREF as top directory.-T string Replace the default HTML title and H1 header with string.--nolinks Turn off hyperlinks in HTML output.--hintro X Use file X as the HTML intro.--houtro X Use file X as the HTML outro.------- Input options ---------fromfile Reads paths from files (.=stdin)--fromtabfile Reads trees from tab indented files (.=stdin)--fflinks Process link information when using --fromfile.------- Miscellaneous options ---------version Print version and exit.--help Print usage and this help message and exit.-- Options processing terminator.┌──(root㉿kali)-[~]
└─# dpkg -l | grep tree
ii cherrytree 0.99.48+dfsg-1 amd64 hierarchical note taking application
ii libhtml-tree-perl 5.07-3 all Perl module to represent and create HTML syntax trees
ii libxml-twig-perl 1:3.52-2 all Perl module for processing huge XML documents in tree mode
ii libxml-xpathengine-perl 0.14-2 all re-usable XPath engine for DOM-like trees
ii python3-asciitree 0.3.3-3 all Draw tree structures using (ASCII or Unicode) characters
ii python3-asttokens 2.2.1-1 all annotate Python asbtract syntax trees with code references (Python 3)
ii tree 2.1.1-1 amd64 displays an indented directory tree, in color
案例2 :使用dpkg安装软件包
┌──(root㉿kali)-[~] ## 卸载
└─# apt-get remove tree
正在读取软件包列表... 完成
正在分析软件包的依赖关系树... 完成
正在读取状态信息... 完成 ┌──(root㉿kali)-[~]
└─# cd work/doc ┌──(root㉿kali)-[~/work/doc]
└─# pwd
/root/work/doc## apt-get download -- 下载指定的二进制包到当前目录
┌──(root㉿kali)-[~/work/doc]
└─# apt-get download tree
获取:1 http://mirrors.ustc.edu.cn/kali kali-rolling/main amd64 tree amd64 2.1.1-1 [54.4 kB]
已下载 54.4 kB,耗时 0秒 (200 kB/s)
W: 由于文件'/root/work/doc/tree_2.1.1-1_amd64.deb'无法被用户'_apt'访问,已脱离沙盒并提权为根用户来进行下载。 - pkgAcquire::Run (13: 权限不够)┌──(root㉿kali)-[~/work/doc]
└─# ls -lh
总计 56K
-rw-r--r-- 1 root root 54K 6月27日 02:08 tree_2.1.1-1_amd64.deb## dpkg -i 安装本地软件包
┌──(root㉿kali)-[~/work/doc]
└─# dpkg -i tree_2.1.1-1_amd64.deb
正在选中未选择的软件包 tree。
(正在读取数据库 ... 系统当前共安装有 428197 个文件和目录。)
准备解压 tree_2.1.1-1_amd64.deb ...
正在解压 tree (2.1.1-1) ...
正在设置 tree (2.1.1-1) ...
正在处理用于 kali-menu (2023.4.2) 的触发器 ...
正在处理用于 man-db (2.11.2-3) 的触发器 ...┌──(root㉿kali)-[~/work/doc]
└─# which tree
/usr/bin/tree┌──(root㉿kali)-[~/work/doc]
└─# dpkg -l | grep tree
ii cherrytree 0.99.48+dfsg-1 amd64 hierarchical note taking application
ii libhtml-tree-perl 5.07-3 all Perl module to represent and create HTML syntax trees
ii libxml-twig-perl 1:3.52-2 all Perl module for processing huge XML documents in tree mode
ii libxml-xpathengine-perl 0.14-2 all re-usable XPath engine for DOM-like trees
ii python3-asciitree 0.3.3-3 all Draw tree structures using (ASCII or Unicode) characters
ii python3-asttokens 2.2.1-1 all annotate Python asbtract syntax trees with code references (Python 3)
ii tree 2.1.1-1 amd64 displays an indented directory tree, in color
案例3 :安装一个集成的开发环境(IDE Visual Studio Code)
## 拿到下载链接
┌──(root㉿kali)-[~/work/doc]
└─# wget https://az764295.vo.msecnd.net/stable/6c3e3dba23e8fadc360aed75ce363ba185c49794/code_1.81.1-1691620686_amd64.deb
--2023-08-24 15:43:14-- https://az764295.vo.msecnd.net/stable/6c3e3dba23e8fadc360aed75ce363ba185c49794/code_1.81.1-1691620686_amd64.deb
正在解析主机 az764295.vo.msecnd.net (az764295.vo.msecnd.net)... 117.18.232.200
正在连接 az764295.vo.msecnd.net (az764295.vo.msecnd.net)|117.18.232.200|:443... 失败:拒绝连接。## apt-get install -f 这样的方式 会自动解决依赖 dpkg -i 本地安装不会自动解决依赖
┌──(root㉿kali)-[~/work/doc]
└─# apt-get install -f ./code_1.81.1-1691620686_amd64.deb
正在读取软件包列表... 完成
正在分析软件包的依赖关系树... 完成
正在读取状态信息... 完成
注意,选中 'code' 而非 './code_1.81.1-1691620686_amd64.deb'
案例4 :安装mtr 路由跟踪工具
window – tracert
linux – traceroute
┌──(root㉿kali)-[~/work/doc]
└─# traceroute --help
Usage:traceroute [ -46dFITnreAUDV ] [ -f first_ttl ] [ -g gate,... ] [ -i device ] [ -m max_ttl ] [ -N squeries ] [ -p port ] [ -t tos ] [ -l flow_label ] [ -w MAX,HERE,NEAR ] [ -q nqueries ] [ -s src_addr ] [ -z sendwait ] [ --fwmark=num ] host [ packetlen ]
Options:-4 Use IPv4-6 Use IPv6-d --debug Enable socket level debugging-F --dont-fragment Do not fragment packets-f first_ttl --first=first_ttlStart from the first_ttl hop (instead from 1)-g gate,... --gateway=gate,...Route packets through the specified gateway(maximum 8 for IPv4 and 127 for IPv6)-I --icmp Use ICMP ECHO for tracerouting-T --tcp Use TCP SYN for tracerouting (default port is 80)-i device --interface=deviceSpecify a network interface to operate with-m max_ttl --max-hops=max_ttlSet the max number of hops (max TTL to bereached). Default is 30-N squeries --sim-queries=squeriesSet the number of probes to be triedsimultaneously (default is 16)-n Do not resolve IP addresses to their domain names-p port --port=port Set the destination port to use. It is eitherinitial udp port value for "default" method(incremented by each probe, default is 33434), orinitial seq for "icmp" (incremented as well,default from 1), or some constant destinationport for other methods (with default of 80 for"tcp", 53 for "udp", etc.)-t tos --tos=tos Set the TOS (IPv4 type of service) or TC (IPv6traffic class) value for outgoing packets-l flow_label --flowlabel=flow_labelUse specified flow_label for IPv6 packets-w MAX,HERE,NEAR --wait=MAX,HERE,NEARWait for a probe no more than HERE (default 3)times longer than a response from the same hop,or no more than NEAR (default 10) times than somenext hop, or MAX (default 5.0) seconds (floatpoint values allowed too)-q nqueries --queries=nqueriesSet the number of probes per each hop. Default is3-r Bypass the normal routing and send directly to ahost on an attached network-s src_addr --source=src_addrUse source src_addr for outgoing packets-z sendwait --sendwait=sendwaitMinimal time interval between probes (default 0).If the value is more than 10, then it specifies anumber in milliseconds, else it is a number ofseconds (float point values allowed too)-e --extensions Show ICMP extensions (if present), including MPLS-A --as-path-lookups Perform AS path lookups in routing registries andprint results directly after the correspondingaddresses-M name --module=name Use specified module (either builtin or external)for traceroute operations. Most methods havetheir shortcuts (`-I' means `-M icmp' etc.)-O OPTS,... --options=OPTS,...Use module-specific option OPTS for thetraceroute module. Several OPTS allowed,separated by comma. If OPTS is "help", print infoabout available options--sport=num Use source port num for outgoing packets. Implies`-N 1'--fwmark=num Set firewall mark for outgoing packets-U --udp Use UDP to particular port for tracerouting(instead of increasing the port per each probe),default port is 53-UL Use UDPLITE for tracerouting (default dest portis 53)-D --dccp Use DCCP Request for tracerouting (default portis 33434)-P prot --protocol=prot Use raw packet of protocol prot for tracerouting--mtu Discover MTU along the path being traced. Implies`-F -N 1'--back Guess the number of hops in the backward path andprint if it differs-V --version Print version info and exit--help Read this help and exitArguments:
+ host The host to traceroute topacketlen The full packet length (default is the length of an IPheader plus 40). Can be ignored or increased to a minimalallowed value
┌──(root㉿kali)-[~/work/doc]
└─# apt-cache search ^mtr
mtr - Full screen ncurses and X11 traceroute tool
mtr-tiny - Full screen ncurses traceroute tool
mtree-netbsd - Validates directory tree against specification┌──(root㉿kali)-[~/work/doc]
└─# apt-get install mtr
正在读取软件包列表... 完成
正在分析软件包的依赖关系树... 完成
正在读取状态信息... 完成
下列软件包是自动安装的并且现在不需要了:└─# mtr qq.com
案例5 :升级软件包
python3的升级
┌──(root㉿kali)-[~/work/doc]
└─# python3 -V
Python 3.11.4┌──(root㉿kali)-[~/work/doc]
└─# apt-get upgrade python3
案例6 :通过git方式安装软件
┌──(root㉿kali)-[~/work/doc]
└─# git -h
用法:git [-v | --version] [-h | --help] [-C <路径>] [-c <名称>=<取值>][--exec-path[=<路径>]] [--html-path] [--man-path] [--info-path][-p | --paginate | -P | --no-pager] [--no-replace-objects] [--bare][--git-dir=<路径>] [--work-tree=<路径>] [--namespace=<名称>][--config-env=<名称>=<环境变量>] <命令> [<参数>]这些是各种场合常见的 Git 命令:开始一个工作区(参见:git help tutorial)clone 克隆仓库到一个新目录init 创建一个空的 Git 仓库或重新初始化一个已存在的仓库在当前变更上工作(参见:git help everyday)add 添加文件内容至索引mv 移动或重命名一个文件、目录或符号链接restore 恢复工作区文件rm 从工作区和索引中删除文件检查历史和状态(参见:git help revisions)bisect 通过二分查找定位引入 bug 的提交diff 显示提交之间、提交和工作区之间等的差异grep 输出和模式匹配的行log 显示提交日志show 显示各种类型的对象status 显示工作区状态扩展、标记和调校您的历史记录branch 列出、创建或删除分支commit 记录变更到仓库merge 合并两个或更多开发历史rebase 在另一个分支上重新应用提交reset 重置当前 HEAD 到指定状态switch 切换分支tag 创建、列出、删除或校验一个 GPG 签名的标签对象协同(参见:git help workflows)fetch 从另外一个仓库下载对象和引用pull 获取并整合另外的仓库或一个本地分支push 更新远程引用和相关的对象命令 'git help -a' 和 'git help -g' 显示可用的子命令和一些概念帮助。
查看 'git help <命令>' 或 'git help <概念>' 以获取给定子命令或概念的
帮助。
有关系统的概述,查看 'git help git'。
开源的 情报搜集工具 recon-ng
┌──(root㉿kali)-[~/work/doc]
└─# git clone https://github.com/lanmaster53/recon-ng.git
正克隆到 'recon-ng'...
remote: Enumerating objects: 9522, done.
remote: Counting objects: 100% (19/19), done.
remote: Compressing objects: 100% (16/16), done.
remote: Total 9522 (delta 3), reused 14 (delta 3), pack-reused 9503
接收对象中: 100% (9522/9522), 3.06 MiB | 775.00 KiB/s, 完成.
处理 delta 中: 100% (4958/4958), 完成.┌──(root㉿kali)-[~/work/doc]
└─# ls
code_1.81.1-1691620686_amd64.deb recon-ng tree_2.1.1-1_amd64.deb┌──(root㉿kali)-[~/work/doc]
└─# cd regon-ng
cd: 没有那个文件或目录: regon-ng┌──(root㉿kali)-[~/work/doc]
└─# cd recon-ng┌──(root㉿kali)-[~/work/doc/recon-ng]
└─# ls
docker-compose.yml LICENSE recon recon-ng REQUIREMENTS
Dockerfile README.md recon-cli recon-web VERSION┌──(root㉿kali)-[~/work/doc/recon-ng]
└─# pip install -r REQUIREMENTS┌──(root㉿kali)-[~/work/doc/recon-ng]
└─# recon-ng
[*] Version check disabled._/_/_/ _/_/_/_/ _/_/_/ _/_/_/ _/ _/ _/ _/ _/_/_/_/ _/ _/ _/ _/ _/ _/_/ _/ _/_/ _/ _/ _/_/_/ _/_/_/ _/ _/ _/ _/ _/ _/ _/_/_/_/ _/ _/ _/ _/ _/_/_/_/ _/ _/ _/ _/ _/ _/ _/_/ _/ _/_/ _/ _/
_/ _/ _/_/_/_/ _/_/_/ _/_/_/ _/ _/ _/ _/ _/_/_/ /\/ \\ /\Sponsored by... /\ /\/ \\V \/\/ \\/ // \\\\\ \\ \/\// // BLACK HILLS \/ \\www.blackhillsinfosec.com____ ____ ____ ____ _____ _ ____ ____ ____|____] | ___/ |____| | | | |____ |____ || | \_ | | |____ | | ____| |____ |____www.practisec.com[recon-ng v5.1.2, Tim Tomes (@lanmaster53)] [*] No modules enabled/installed.
相关文章:

Kali 软件管理测试案例
案例1 :显示目录树 tree ┌──(root㉿kali)-[~] └─# tree --help usage: tree [-acdfghilnpqrstuvxACDFJQNSUX] [-L level [-R]] [-H baseHREF][-T title] [-o filename] [-P pattern] [-I pattern] [--gitignore][--gitfile[]file] [--matchdirs] [--metafirs…...
【分布式】Zookeeper
Java开发者视角下的Zookeeper—— 在什么场景下使用,怎么用 可以参考:https://zhuanlan.zhihu.com/p/62526102 Zookeeper是什么? ZooKeeper 是一个分布式的,开放源码的分布式应用程序协同服务。ZooKeeper 的设计目标是将那些复…...

ScheduleJS Crack,新的“信息列”水平滚动功能
ScheduleJS Crack,新的“信息列”水平滚动功能 增加了对Angular 16的支持 新的“信息列”水平滚动功能。 新的“信息列”固定功能。 添加了输入属性以处理组件模板中的偶数和奇数ScheduleRowPlainBackgroundColor以及CSS变量。 改进了“信息列”和角度甘特组件的类型。 Schedul…...
curl封装
一。由于工作的原因,需要对curl做一些封装,附加上我们的证书,提供给第三个C和jAVA使用。 二。头文件封闭四个函数,get,post,download,upload #ifndef CURLHTTP_H #define CURLHTTP_H#include …...
C语言数据类型和变量
C语言数据类型和变量 数据类型分类内置类型【C语言本身就具有的类型】自定义类型【自己来创建类型】取值范围 变量变量的创建变量创建的语法形式变量的分类全局变量局部变量 栈区、堆区、静态区 算术操作符赋值操作符连续赋值复合赋值符 单目操作符:、--、、-强制类…...

分布式训练 最小化部署docker swarm + docker-compose落地方案
目录 背景: 前提条件: 一、docker环境初始化配置 1. 安装nvidia-docker2 2. 安装docker-compose工具 3. 获取GPU UUID 4. 修改docker runtime为nvidia,指定机器的UUID 二、docker-swarm 环境安装 1. 初始化swarm管理节点 2. 加入工…...

QT学习笔记-开发环境编译Qt MySql数据库驱动与交叉编译Qt MySql数据库驱动
QT学习笔记-开发环境编译Qt MySql数据库驱动与交叉编译Qt MySql数据库驱动 0、背景1、基本环境2、开发环境编译Qt MySql数据库驱动2.1 依赖说明2.2 MySQL驱动编译过程 3、交叉编译Qt MySql数据库驱动3.1 依赖说明3.3.1 如何在交叉编译服务器上找到mysql.h及相关头文件3.3.2 如果…...
QT使用QXlsx实现数据验证与Excel公式操作 QT基础入门【Excel的操作】
准备环境:QT中使用QtXlsx库的三种方法 1、公式操作写单行公式 //右值初始化Format rAlign;rAlign.setHorizontalAlignment(Format::AlignRight);//左值初始化Format lAlign;lAlign.setHorizontalAlignment(Format::AlignLeft);xlsx.write("B3", 40, lAlign);xlsx.wr…...
renrenfast Vue2 打包发布
1、修改 static/config/index-prod.js 文件 // api接口请求地址 window.SITE_CONFIG[baseUrl] http://192.168.1.86:8080/renren-fast; /*** 生产环境*/ ;(function () {window.SITE_CONFIG {};// api接口请求地址window.SITE_CONFIG[baseUrl] http://192.16…...

NoSQL数据库介绍+Redis部署
目录 一、NoSQL概述 1、数据的高并发读写 2、海量数据的高效率存储和访问 3、数据库的高扩展和高可用 二、NoSQL的类别 1、键值存储数据库 2、列存储数据库 3、文档型数据库 4、图形化数据库 三、分布式数据库中的CAP原理 1、传统的ACID 1)、A--原子性 …...

【mindspore学习】环境配置
本次实验搭配的环境是 CUDA 11.6 CUDNN v8.9.4 TensorRT-8.4.1.5 mindspore 2.1.0。 1、配置 Nvidia 显卡驱动 如果原来的主机已经安装了 nvidia 驱动,为避免版本的冲突,建议先清除掉旧的 nvidia驱动 sudo apt-get --purge remove nvidia* sudo apt…...
基于shell脚本对aliyun npm仓库(https://packages.aliyun.com)登录认证
文章目录 基于shell脚本对阿里云npm仓库(https://packages.aliyun.com)登录认证食用人群食用方式 基于shell脚本对阿里云npm仓库(https://packages.aliyun.com)登录认证 食用人群 由于一些安全的原因,某些企业可能会…...
K8s Pod 安全认知:从openshift SCC 到 PSP 弃用以及现在的 PSA
写在前面 简单整理,博文内容涉及: PSP 的由来PSA 的发展PSA 使用认知不涉及使用,用于了解 Pod 安全 API 资源理解不足小伙伴帮忙指正对每个人而言,真正的职责只有一个:找到自我。然后在心中坚守其一生,全心全意,永不停息。所有其它的路都是不完整的,是人的逃避方式,是…...

提高企业会计效率,选择Manager for Mac(企业会计软件)
作为一家企业,良好的财务管理是保持业务运转的关键。而选择一款适合自己企业的会计软件,能够帮助提高会计效率、减少错误和节约时间。在众多的选择中,Manager for Mac(企业会计软件)是一款值得考虑的优秀软件。 首先,Manager for…...

软考:中级软件设计师:信息系统的安全属性,对称加密和非对称加密,信息摘要,数字签名技术,数字信封与PGP
软考:中级软件设计师:信息系统的安全属性 提示:系列被面试官问的问题,我自己当时不会,所以下来自己复盘一下,认真学习和总结,以应对未来更多的可能性 关于互联网大厂的笔试面试,都是需要细心准…...
Vue3中reactive响应式失效的问题
情景阐述 弹窗内部有一个挑选框,要通过请求接口获取挑选框下面可供选择的数据。 这是一个很简单的情境,我立刻有了自己的思路。如果实现搜索,数据较少可以直接用elementplus自带的filter。如果数据较多,就需要传val,…...
lamp
LAMP 环境 指的是在 Linux 操作系统中分别安装 Apache 网页服务器、MySQL 数据库服务器和 PHP 开发服务器,以及一些对应的扩展软件。AMP也支持win操作系统 (sccm 域升级版) LAMP架构是目前成熟的企业网站应用模式之一,指的是协同…...

LeetCode 周赛上分之旅 #42 当 LeetCode 考树上倍增,出题的趋势在变化吗
⭐️ 本文已收录到 AndroidFamily,技术和职场问题,请关注公众号 [彭旭锐] 和 BaguTree Pro 知识星球提问。 学习数据结构与算法的关键在于掌握问题背后的算法思维框架,你的思考越抽象,它能覆盖的问题域就越广,理解难度…...

Qt 自定义菜单 托盘菜单
托盘菜单实现:通过QSystemTrayIconQMenuQAction即可完美实现! 实现方式:createActions用于创建菜单、菜单项,translateActions用于设置文本、实现多语化,translateAccount用于设置用户空间配额。 void TrayMenu::createActions(…...

channel并发编程
不要通过共享内存通信,要通过通信共享内存。 channel是golang并发编程中一种重要的数据结构,用于多个goroutine之间进行通信。 我们通常可以把channel想象成一个传送带,将goroutine想象成传送带周边的人,一个传送带的上游放上物品…...

龙虎榜——20250610
上证指数放量收阴线,个股多数下跌,盘中受消息影响大幅波动。 深证指数放量收阴线形成顶分型,指数短线有调整的需求,大概需要一两天。 2025年6月10日龙虎榜行业方向分析 1. 金融科技 代表标的:御银股份、雄帝科技 驱动…...
将对透视变换后的图像使用Otsu进行阈值化,来分离黑色和白色像素。这句话中的Otsu是什么意思?
Otsu 是一种自动阈值化方法,用于将图像分割为前景和背景。它通过最小化图像的类内方差或等价地最大化类间方差来选择最佳阈值。这种方法特别适用于图像的二值化处理,能够自动确定一个阈值,将图像中的像素分为黑色和白色两类。 Otsu 方法的原…...
vue3 定时器-定义全局方法 vue+ts
1.创建ts文件 路径:src/utils/timer.ts 完整代码: import { onUnmounted } from vuetype TimerCallback (...args: any[]) > voidexport function useGlobalTimer() {const timers: Map<number, NodeJS.Timeout> new Map()// 创建定时器con…...
代码随想录刷题day30
1、零钱兑换II 给你一个整数数组 coins 表示不同面额的硬币,另给一个整数 amount 表示总金额。 请你计算并返回可以凑成总金额的硬币组合数。如果任何硬币组合都无法凑出总金额,返回 0 。 假设每一种面额的硬币有无限个。 题目数据保证结果符合 32 位带…...

DingDing机器人群消息推送
文章目录 1 新建机器人2 API文档说明3 代码编写 1 新建机器人 点击群设置 下滑到群管理的机器人,点击进入 添加机器人 选择自定义Webhook服务 点击添加 设置安全设置,详见说明文档 成功后,记录Webhook 2 API文档说明 点击设置说明 查看自…...
MySQL 主从同步异常处理
阅读原文:https://www.xiaozaoshu.top/articles/mysql-m-s-update-pk MySQL 做双主,遇到的这个错误: Could not execute Update_rows event on table ... Error_code: 1032是 MySQL 主从复制时的经典错误之一,通常表示ÿ…...

ubuntu22.04有线网络无法连接,图标也没了
今天突然无法有线网络无法连接任何设备,并且图标都没了 错误案例 往上一顿搜索,试了很多博客都不行,比如 Ubuntu22.04右上角网络图标消失 最后解决的办法 下载网卡驱动,重新安装 操作步骤 查看自己网卡的型号 lspci | gre…...
Pydantic + Function Calling的结合
1、Pydantic Pydantic 是一个 Python 库,用于数据验证和设置管理,通过 Python 类型注解强制执行数据类型。它广泛用于 API 开发(如 FastAPI)、配置管理和数据解析,核心功能包括: 数据验证:通过…...
多元隐函数 偏导公式
我们来推导隐函数 z z ( x , y ) z z(x, y) zz(x,y) 的偏导公式,给定一个隐函数关系: F ( x , y , z ( x , y ) ) 0 F(x, y, z(x, y)) 0 F(x,y,z(x,y))0 🧠 目标: 求 ∂ z ∂ x \frac{\partial z}{\partial x} ∂x∂z、 …...

【若依】框架项目部署笔记
参考【SpringBoot】【Vue】项目部署_no main manifest attribute, in springboot-0.0.1-sn-CSDN博客 多一个redis安装 准备工作: 压缩包下载:http://download.redis.io/releases 1. 上传压缩包,并进入压缩包所在目录,解压到目标…...