当前位置: 首页 > news >正文

x86_64 ansible 源码编译安装

源码

GitHub - ansible/ansible: Ansible is a radically simple IT automation platform that makes your applications and systems easier to deploy and maintain. Automate everything from code deployment to network configuration to cloud management, in a language that approaches plain English, using SSH, with no agents to install on remote systems. https://docs.ansible.com.

编译安装过程记录

依赖

yeqiang@yeqiang-MS-7B23:~/Downloads/src/ansible$ python3 -m pip install -v -r requirements.txt 
Using pip 22.0.2 from /usr/lib/python3/dist-packages/pip (python 3.10)
Defaulting to user installation because normal site-packages is not writeable
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting jinja2>=3.0.0Using cached https://pypi.tuna.tsinghua.edu.cn/packages/bc/c3/f068337a370801f372f2f8f6bad74a5c140f6fda3d9de154052708dd3c65/Jinja2-3.1.2-py3-none-any.whl (133 kB)
Requirement already satisfied: PyYAML>=5.1 in /usr/lib/python3/dist-packages (from -r requirements.txt (line 7)) (5.4.1)
Requirement already satisfied: cryptography in /home/yeqiang/.local/lib/python3.10/site-packages (from -r requirements.txt (line 8)) (36.0.2)
Collecting packagingUsing cached https://pypi.tuna.tsinghua.edu.cn/packages/ab/c3/57f0601a2d4fe15de7a553c00adbc901425661bf048f2a22dfc500caf121/packaging-23.1-py3-none-any.whl (48 kB)
Collecting resolvelib<1.1.0,>=0.5.3Downloading https://pypi.tuna.tsinghua.edu.cn/packages/d2/fc/e9ccf0521607bcd244aa0b3fbd574f71b65e9ce6a112c83af988bbbe2e23/resolvelib-1.0.1-py2.py3-none-any.whl (17 kB)
Collecting MarkupSafe>=2.0Using cached https://pypi.tuna.tsinghua.edu.cn/packages/12/b3/d9ed2c0971e1435b8a62354b18d3060b66c8cb1d368399ec0b9baa7c0ee5/MarkupSafe-2.1.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (25 kB)
Requirement already satisfied: cffi>=1.12 in /home/yeqiang/.local/lib/python3.10/site-packages (from cryptography->-r requirements.txt (line 8)) (1.15.1)
Requirement already satisfied: pycparser in /home/yeqiang/.local/lib/python3.10/site-packages (from cffi>=1.12->cryptography->-r requirements.txt (line 8)) (2.21)
Installing collected packages: resolvelib, packaging, MarkupSafe, jinja2
Successfully installed MarkupSafe-2.1.3 jinja2-3.1.2 packaging-23.1 resolvelib-1.0.1

构建

yeqiang@yeqiang-MS-7B23:~/Downloads/src/ansible$ python3 setup.py build
running build
running build_py
creating build
creating build/lib
creating build/lib/ansible
...copying test/lib/ansible_test/_util/controller/sanity/validate-modules/validate_modules/module_args.py -> build/lib/ansible_test/_util/controller/sanity/validate-modules/validate_modules
copying test/lib/ansible_test/_util/controller/sanity/validate-modules/validate_modules/schema.py -> build/lib/ansible_test/_util/controller/sanity/validate-modules/validate_modules
copying test/lib/ansible_test/_util/controller/sanity/validate-modules/validate_modules/utils.py -> build/lib/ansible_test/_util/controller/sanity/validate-modules/validate_modules
creating build/lib/ansible_test/_util/controller/sanity/yamllint/config
copying test/lib/ansible_test/_util/controller/sanity/yamllint/config/default.yml -> build/lib/ansible_test/_util/controller/sanity/yamllint/config
copying test/lib/ansible_test/_util/controller/sanity/yamllint/config/modules.yml -> build/lib/ansible_test/_util/controller/sanity/yamllint/config
copying test/lib/ansible_test/_util/controller/sanity/yamllint/config/plugins.yml -> build/lib/ansible_test/_util/controller/sanity/yamllint/config
creating build/lib/ansible_test/config
copying test/lib/ansible_test/config/cloud-config-aws.ini.template -> build/lib/ansible_test/config
copying test/lib/ansible_test/config/cloud-config-azure.ini.template -> build/lib/ansible_test/config
copying test/lib/ansible_test/config/cloud-config-cloudscale.ini.template -> build/lib/ansible_test/config
copying test/lib/ansible_test/config/cloud-config-cs.ini.template -> build/lib/ansible_test/config
copying test/lib/ansible_test/config/cloud-config-gcp.ini.template -> build/lib/ansible_test/config
copying test/lib/ansible_test/config/cloud-config-hcloud.ini.template -> build/lib/ansible_test/config
copying test/lib/ansible_test/config/cloud-config-opennebula.ini.template -> build/lib/ansible_test/config
copying test/lib/ansible_test/config/cloud-config-openshift.kubeconfig.template -> build/lib/ansible_test/config
copying test/lib/ansible_test/config/cloud-config-scaleway.ini.template -> build/lib/ansible_test/config
copying test/lib/ansible_test/config/cloud-config-vcenter.ini.template -> build/lib/ansible_test/config
copying test/lib/ansible_test/config/cloud-config-vultr.ini.template -> build/lib/ansible_test/config
copying test/lib/ansible_test/config/inventory.networking.template -> build/lib/ansible_test/config
copying test/lib/ansible_test/config/inventory.winrm.template -> build/lib/ansible_test/config
copying test/lib/ansible_test/config/config.yml -> build/lib/ansible_test/config
running build_scripts
creating build/scripts-3.10
copying and adjusting bin/ansible-test -> build/scripts-3.10
changing mode of build/scripts-3.10/ansible-test from 664 to 775

安装

yeqiang@yeqiang-MS-7B23:~/Downloads/src/ansible$ sudo python3 setup.py install
...byte-compiling build/bdist.linux-x86_64/egg/ansible_test/_util/controller/sanity/integration-aliases/yaml_to_json.py to yaml_to_json.cpython-310.pyc
byte-compiling build/bdist.linux-x86_64/egg/ansible_test/_util/controller/sanity/validate-modules/validate.py to validate.cpython-310.pyc
byte-compiling build/bdist.linux-x86_64/egg/ansible_test/_util/controller/sanity/validate-modules/validate_modules/__init__.py to __init__.cpython-310.pyc
byte-compiling build/bdist.linux-x86_64/egg/ansible_test/_util/controller/sanity/validate-modules/validate_modules/main.py to main.cpython-310.pyc
byte-compiling build/bdist.linux-x86_64/egg/ansible_test/_util/controller/sanity/validate-modules/validate_modules/module_args.py to module_args.cpython-310.pyc
byte-compiling build/bdist.linux-x86_64/egg/ansible_test/_util/controller/sanity/validate-modules/validate_modules/schema.py to schema.cpython-310.pyc
byte-compiling build/bdist.linux-x86_64/egg/ansible_test/_util/controller/sanity/validate-modules/validate_modules/utils.py to utils.cpython-310.pyc
byte-compiling build/bdist.linux-x86_64/egg/ansible_test/_util/controller/sanity/yamllint/yamllinter.py to yamllinter.cpython-310.pyc
byte-compiling build/bdist.linux-x86_64/egg/ansible_test/_util/controller/sanity/pylint/plugins/deprecated.py to deprecated.cpython-310.pyc
byte-compiling build/bdist.linux-x86_64/egg/ansible_test/_util/controller/sanity/pylint/plugins/string_format.py to string_format.cpython-310.pyc
byte-compiling build/bdist.linux-x86_64/egg/ansible_test/_util/controller/sanity/pylint/plugins/unwanted.py to unwanted.cpython-310.pyc
creating build/bdist.linux-x86_64/egg/EGG-INFO
installing scripts to build/bdist.linux-x86_64/egg/EGG-INFO/scripts
running install_scripts
running build_scripts
creating build/bdist.linux-x86_64/egg/EGG-INFO/scripts
copying build/scripts-3.10/ansible-test -> build/bdist.linux-x86_64/egg/EGG-INFO/scripts
changing mode of build/bdist.linux-x86_64/egg/EGG-INFO/scripts/ansible-test to 775
copying lib/ansible_core.egg-info/PKG-INFO -> build/bdist.linux-x86_64/egg/EGG-INFO
copying lib/ansible_core.egg-info/SOURCES.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying lib/ansible_core.egg-info/dependency_links.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying lib/ansible_core.egg-info/entry_points.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying lib/ansible_core.egg-info/not-zip-safe -> build/bdist.linux-x86_64/egg/EGG-INFO
copying lib/ansible_core.egg-info/requires.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying lib/ansible_core.egg-info/top_level.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
creating dist
creating 'dist/ansible_core-2.16.0.dev0-py3.10.egg' and adding 'build/bdist.linux-x86_64/egg' to it
removing 'build/bdist.linux-x86_64/egg' (and everything under it)
Processing ansible_core-2.16.0.dev0-py3.10.egg
creating /usr/local/lib/python3.10/dist-packages/ansible_core-2.16.0.dev0-py3.10.egg
Extracting ansible_core-2.16.0.dev0-py3.10.egg to /usr/local/lib/python3.10/dist-packages
Adding ansible-core 2.16.0.dev0 to easy-install.pth file
Installing ansible-test script to /usr/local/bin
Installing ansible script to /usr/local/bin
Installing ansible-config script to /usr/local/bin
Installing ansible-connection script to /usr/local/bin
Installing ansible-console script to /usr/local/bin
Installing ansible-doc script to /usr/local/bin
Installing ansible-galaxy script to /usr/local/bin
Installing ansible-inventory script to /usr/local/bin
Installing ansible-playbook script to /usr/local/bin
Installing ansible-pull script to /usr/local/bin
Installing ansible-vault script to /usr/local/binInstalled /usr/local/lib/python3.10/dist-packages/ansible_core-2.16.0.dev0-py3.10.egg
Processing dependencies for ansible-core==2.16.0.dev0
Searching for resolvelib<1.1.0,>=0.5.3
Reading https://pypi.org/simple/resolvelib/
/usr/lib/python3/dist-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning:  is an invalid version and will not be supported in a future releasewarnings.warn(
Downloading https://files.pythonhosted.org/packages/d2/fc/e9ccf0521607bcd244aa0b3fbd574f71b65e9ce6a112c83af988bbbe2e23/resolvelib-1.0.1-py2.py3-none-any.whl#sha256=d2da45d1a8dfee81bdd591647783e340ef3bcb104b54c383f70d422ef5cc7dbf
Best match: resolvelib 1.0.1
Processing resolvelib-1.0.1-py2.py3-none-any.whl
Installing resolvelib-1.0.1-py2.py3-none-any.whl to /usr/local/lib/python3.10/dist-packages
Adding resolvelib 1.0.1 to easy-install.pth fileInstalled /usr/local/lib/python3.10/dist-packages/resolvelib-1.0.1-py3.10.egg
Searching for packaging
Reading https://pypi.org/simple/packaging/
Downloading https://files.pythonhosted.org/packages/ab/c3/57f0601a2d4fe15de7a553c00adbc901425661bf048f2a22dfc500caf121/packaging-23.1-py3-none-any.whl#sha256=994793af429502c4ea2ebf6bf664629d07c1a9fe974af92966e4b8d2df7edc61
Best match: packaging 23.1
Processing packaging-23.1-py3-none-any.whl
Installing packaging-23.1-py3-none-any.whl to /usr/local/lib/python3.10/dist-packages
Adding packaging 23.1 to easy-install.pth fileInstalled /usr/local/lib/python3.10/dist-packages/packaging-23.1-py3.10.egg
Searching for jinja2>=3.0.0
Reading https://pypi.org/simple/jinja2/
Downloading https://files.pythonhosted.org/packages/bc/c3/f068337a370801f372f2f8f6bad74a5c140f6fda3d9de154052708dd3c65/Jinja2-3.1.2-py3-none-any.whl#sha256=6088930bfe239f0e6710546ab9c19c9ef35e29792895fed6e6e31a023a182a61
Best match: Jinja2 3.1.2
Processing Jinja2-3.1.2-py3-none-any.whl
Installing Jinja2-3.1.2-py3-none-any.whl to /usr/local/lib/python3.10/dist-packages
Adding Jinja2 3.1.2 to easy-install.pth fileInstalled /usr/local/lib/python3.10/dist-packages/Jinja2-3.1.2-py3.10.egg
Searching for MarkupSafe>=2.0
Reading https://pypi.org/simple/MarkupSafe/
Downloading https://files.pythonhosted.org/packages/12/b3/d9ed2c0971e1435b8a62354b18d3060b66c8cb1d368399ec0b9baa7c0ee5/MarkupSafe-2.1.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl#sha256=65c1a9bcdadc6c28eecee2c119465aebff8f7a584dd719facdd9e825ec61ab52
Best match: MarkupSafe 2.1.3
Processing MarkupSafe-2.1.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Installing MarkupSafe-2.1.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl to /usr/local/lib/python3.10/dist-packages
Adding MarkupSafe 2.1.3 to easy-install.pth fileInstalled /usr/local/lib/python3.10/dist-packages/MarkupSafe-2.1.3-py3.10-linux-x86_64.egg
Searching for cryptography==3.4.8
Best match: cryptography 3.4.8
Adding cryptography 3.4.8 to easy-install.pth fileUsing /usr/lib/python3/dist-packages
Searching for PyYAML==5.4.1
Best match: PyYAML 5.4.1
Adding PyYAML 5.4.1 to easy-install.pth fileUsing /usr/lib/python3/dist-packages
Finished processing dependencies for ansible-core==2.16.0.dev0

相关文章:

x86_64 ansible 源码编译安装

源码 GitHub - ansible/ansible: Ansible is a radically simple IT automation platform that makes your applications and systems easier to deploy and maintain. Automate everything from code deployment to network configuration to cloud management, in a languag…...

数据结构学习系列之顺序表的两种插入方式

方式1&#xff1a;在顺序表末端插入数据元素&#xff0c;代码如下&#xff1a;示例代码&#xff1a; int insert_seq_list_1(list_t *seq_list,int data){if(NULL seq_list){printf("入参为NULL\n");return -1;}if(N seq_list->count){printf("顺序表已满…...

Matlab/Python教程系列 | 根据目录下的已有图片制作视频(动画)

MATLAB和Python的编程教程: 根据目录下的已有图片制作视频(动画) 注1:本文系“MATLAB/Python编程教程”系列之一,致力于使用Python和Matlab实现特定的功能。本次要实现的功能是:根据目录下的已有图片制作视频(动画)。 在这个教程中,我们将一起学习如何使用MATLAB和Python编…...

Pyecharts数据可视化(一)

目录 1.Pyecharts简介 2.Pyecharts的常用方法 3.Pyecharts绘制柱状图 3.1 绘制并列柱状图 3.2 绘制水平直方图 1.Pyecharts简介 Pyecharts是一个用于创建交互式图表的Python库。它基于Echarts&#xff0c;一个强大的JavaScript图表库&#xff0c;Pyecharts允许Python开发者…...

stable diffusion实践操作-提示词-图片结构

系列文章目录 stable diffusion实践操作-提示词 文章目录 系列文章目录前言一、提示词汇总1.1 图片结构11.2 图片结构21.3 图片结构3 二、总结 前言 本文主要收纳总结了提示词-图片结构。 一、提示词汇总 1.1 图片结构1 StylesArtistshudson river school哈得逊河学派alpho…...

程序员自由创业周记#2:前期准备

感恩 上次公开了创业的决定后&#xff0c;得到了很多亲朋好友和陌生朋友的鼓励或支持&#xff0c;以不同的形式&#xff0c;感动之情溢于言表。这些都会记在心里&#xff0c;大恩不言谢~ 创业方向 笔者是一名资质平平的iOS开发程序猿&#xff0c;创业项目也就是开发App卖&am…...

Elasticsearch实战(四):Springboot实现Elasticsearch指标聚合与下钻分析open-API

文章目录 系列文章索引一、指标聚合与分类1、什么是指标聚合&#xff08;Metric&#xff09;2、Metric聚合分析分为单值分析和多值分析两类3、概述 二、单值分析API设计1、Avg(平均值)&#xff08;1&#xff09;对所有文档进行avg聚合&#xff08;DSL&#xff09;&#xff08;2…...

Opencv图像暗通道调优

基于雾天退化模型的去雾算法&#xff0c;Opencv图像暗通道调优&#xff0c;&#xff08;清华版代码&#xff09;对普通相片也有较好的调优效果&#xff0c;相片更通透。 结合代码实际运行效果、算法理论模型、实际代码。我个人理解&#xff0c;实际效果是对图像的三个颜色通道…...

怎样来实现流量削峰方案

削峰从本质上来说就是更多地延缓用户请求&#xff0c;以及层层过滤用户的访问需求&#xff0c;遵从“最后落地到数据库的请求数要尽量少”的原则。 1.消息队列解决削峰 要对流量进行削峰&#xff0c;最容易想到的解决方案就是用消息队列来缓冲瞬时流量&#xff0c;把同步的直…...

git status搜索.c和.h后缀及git新建分支

git status搜索.c和.h后缀及git新建分支 1.脚本代码2.git新建分支(1)创建新分支(2)删除本地分支(3)删除远端分支(4)合并分支3.指定历史版本创建分支1.脚本代码 $ git status | grep "\.[hc]$"$ 是行尾的意思 \b 就是用在你匹配整个单词的时候。 如果不是整个…...

【配置环境】Visual Studio 配置 OpenCV

目录 一&#xff0c;环境 二&#xff0c;下载和配置 OpenCV 三&#xff0c;创建一个 Visual Studio 项目 四&#xff0c;配置 Visual Studio 项目 五&#xff0c;编写并编译 OpenCV 程序 六&#xff0c;解决CMake编译OpenCV报的错误 一&#xff0c;环境 Windows 11 家庭中…...

java.sql.SQLException: com.mysql.cj.jdbc.Driver

这篇文章分享一下Springboot整合Elasticsearch时遇到的一个问题&#xff0c;项目正常启动&#xff0c;但是查询数据库的时候发生了一个异常java.sql.SQLException: com.mysql.cj.jdbc.Driver java.sql.SQLException: com.mysql.cj.jdbc.Driverat com.alibaba.druid.util.JdbcU…...

React笔记(四)类组件(2)

一、类组件的props属性 组件中的数据&#xff0c;除了组件内部的状态使用state之外&#xff0c;状态也可以来自组件的外部&#xff0c;外部的状态使用类组件实例上另外一个属性来表示props 1、基本的使用 在components下创建UserInfo组件 import React, { Component } from…...

点云从入门到精通技术详解100篇-点云信息编码

目录 前言 研究发展现状 点云几何信息压缩 点云属性信息压缩 点云压缩算法的相关技术...

Python爬虫解析网页内容

Python爬虫是一种自动化程序&#xff0c;可以模拟人类用户访问网页&#xff0c;获取网页中的内容。爬虫在信息采集、数据分析和网络监测等领域有着广泛的应用。在爬虫过程中&#xff0c;解析网页内容是非常重要的一步。 Python提供了许多强大的库和工具&#xff0c;用于解析网…...

从零开始学习Python爬虫技术,并应用于市场竞争情报收集

在当今信息爆炸的时代&#xff0c;市场竞争情报收集对企业的发展至关重要。Python爬虫技术可以帮助我们高效地收集网络上的有价值信息。本文将从零开始介绍Python爬虫技术&#xff0c;并探讨如何将其应用于市场竞争情报收集。 一、Python爬虫技术基础 安装Python环境 首先&…...

SpringCloudGateway集成SpringDoc CORS问题

SpringCloudGateway集成SpringDoc CORS问题 集成SpringDoc后&#xff0c;在gateway在线文档界面&#xff0c;请求具体的服务接口&#xff0c;报CORS问题 Failed to fetch. Possible Reasons: CORS Network Failure URL scheme must be “http” or “https” for CORS reques…...

国际版阿里云/腾讯云:弹性高性能计算E-HPC入门概述

入门概述 本文介绍E-HPC的运用流程&#xff0c;帮助您快速上手运用弹性高性能核算。 下文以创立集群&#xff0c;在集群中安装GROMACS软件并运转水分子算例进行高性能核算为例&#xff0c;介绍弹性高性能核算的运用流程&#xff0c;帮助您快速上手运用弹性高性能核算。运用流程…...

【博客702】shell flock实现单例模式执行任务

shell flock实现单例模式执行任务 场景 我们需要定时执行一个任务&#xff0c;并且保证每次执行时都需要上一次已经执行完了&#xff0c;即保证同一时间只有一个在运行 示例 假设需要执行的脚本是&#xff1a;ping_and_mtr.sh 创建一个新的脚本来运行你的逻辑脚本&#xff1…...

数据分析基础-数据可视化07-用数据分析讲故事

如何构建⼀个引⼈⼊胜的故事&#xff1f; ⾸先&#xff1a;要想象什么&#xff1f; 可视化什么⽐如何可视化更重要 统计分析&#xff1a;GIGO&#xff08;垃圾输⼊&#xff0c;垃圾输出&#xff09; 在可视化分析环境中&#xff1a; 吉⾼ → 您⽆法从可视化的不适当数据中获…...

Docker 离线安装指南

参考文章 1、确认操作系统类型及内核版本 Docker依赖于Linux内核的一些特性&#xff0c;不同版本的Docker对内核版本有不同要求。例如&#xff0c;Docker 17.06及之后的版本通常需要Linux内核3.10及以上版本&#xff0c;Docker17.09及更高版本对应Linux内核4.9.x及更高版本。…...

STM32+rt-thread判断是否联网

一、根据NETDEV_FLAG_INTERNET_UP位判断 static bool is_conncected(void) {struct netdev *dev RT_NULL;dev netdev_get_first_by_flags(NETDEV_FLAG_INTERNET_UP);if (dev RT_NULL){printf("wait netdev internet up...");return false;}else{printf("loc…...

将对透视变换后的图像使用Otsu进行阈值化,来分离黑色和白色像素。这句话中的Otsu是什么意思?

Otsu 是一种自动阈值化方法&#xff0c;用于将图像分割为前景和背景。它通过最小化图像的类内方差或等价地最大化类间方差来选择最佳阈值。这种方法特别适用于图像的二值化处理&#xff0c;能够自动确定一个阈值&#xff0c;将图像中的像素分为黑色和白色两类。 Otsu 方法的原…...

Java 加密常用的各种算法及其选择

在数字化时代&#xff0c;数据安全至关重要&#xff0c;Java 作为广泛应用的编程语言&#xff0c;提供了丰富的加密算法来保障数据的保密性、完整性和真实性。了解这些常用加密算法及其适用场景&#xff0c;有助于开发者在不同的业务需求中做出正确的选择。​ 一、对称加密算法…...

Android15默认授权浮窗权限

我们经常有那种需求&#xff0c;客户需要定制的apk集成在ROM中&#xff0c;并且默认授予其【显示在其他应用的上层】权限&#xff0c;也就是我们常说的浮窗权限&#xff0c;那么我们就可以通过以下方法在wms、ams等系统服务的systemReady()方法中调用即可实现预置应用默认授权浮…...

.Net Framework 4/C# 关键字(非常用,持续更新...)

一、is 关键字 is 关键字用于检查对象是否于给定类型兼容,如果兼容将返回 true,如果不兼容则返回 false,在进行类型转换前,可以先使用 is 关键字判断对象是否与指定类型兼容,如果兼容才进行转换,这样的转换是安全的。 例如有:首先创建一个字符串对象,然后将字符串对象隐…...

初学 pytest 记录

安装 pip install pytest用例可以是函数也可以是类中的方法 def test_func():print()class TestAdd: # def __init__(self): 在 pytest 中不可以使用__init__方法 # self.cc 12345 pytest.mark.api def test_str(self):res add(1, 2)assert res 12def test_int(self):r…...

python报错No module named ‘tensorflow.keras‘

是由于不同版本的tensorflow下的keras所在的路径不同&#xff0c;结合所安装的tensorflow的目录结构修改from语句即可。 原语句&#xff1a; from tensorflow.keras.layers import Conv1D, MaxPooling1D, LSTM, Dense 修改后&#xff1a; from tensorflow.python.keras.lay…...

HashMap中的put方法执行流程(流程图)

1 put操作整体流程 HashMap 的 put 操作是其最核心的功能之一。在 JDK 1.8 及以后版本中&#xff0c;其主要逻辑封装在 putVal 这个内部方法中。整个过程大致如下&#xff1a; 初始判断与哈希计算&#xff1a; 首先&#xff0c;putVal 方法会检查当前的 table&#xff08;也就…...

代码规范和架构【立芯理论一】(2025.06.08)

1、代码规范的目标 代码简洁精炼、美观&#xff0c;可持续性好高效率高复用&#xff0c;可移植性好高内聚&#xff0c;低耦合没有冗余规范性&#xff0c;代码有规可循&#xff0c;可以看出自己当时的思考过程特殊排版&#xff0c;特殊语法&#xff0c;特殊指令&#xff0c;必须…...