房贷利率计算前端小程序

利率计算前端小程序


视图效果展示如下:
在这里插入图片描述

在这里插入代码片
<!DOCTYPE html>
<html lang="zh-CN">
<head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>贷款计算器</title><script src="https://cdn.tailwindcss.com"></script><link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/css/all.min.css" rel="stylesheet"><script>tailwind.config = {theme: {extend: {colors: {primary: '#3b82f6',secondary: '#f97316',neutral: '#f8fafc',dark: '#1e293b'},fontFamily: {inter: ['Inter', 'sans-serif'],},}}}</script><style type="text/tailwindcss">@layer utilities {.content-auto {content-visibility: auto;}.card-shadow {box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);}.btn-hover {transition: all 0.3s ease;}.btn-hover:hover {transform: translateY(-2px);box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.4);}.input-focus {transition: all 0.2s ease;}.input-focus:focus {border-color: #3b82f6;box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);}.fade-in {animation: fadeIn 0.5s ease-in-out;}@keyframes fadeIn {from { opacity: 0; transform: translateY(10px); }to { opacity: 1; transform: translateY(0); }}}</style>
</head>
<body class="bg-gray-50 font-inter text-dark min-h-screen flex flex-col"><!-- 导航栏 --><header class="bg-white shadow-sm sticky top-0 z-50"><div class="container mx-auto px-4 py-4 flex justify-between items-center"><div class="flex items-center space-x-2"><i class="fa-solid fa-calculator text-primary text-2xl"></i><h1 class="text-xl md:text-2xl font-bold text-dark">贷款计算器</h1></div><nav><ul class="flex space-x-6"><li><a href="#" class="text-gray-600 hover:text-primary transition-colors">首页</a></li><li><a href="#" class="text-gray-600 hover:text-primary transition-colors">贷款指南</a></li><li><a href="#" class="text-gray-600 hover:text-primary transition-colors">联系我们</a></li></ul></nav></div></header><main class="flex-grow container mx-auto px-4 py-8"><!-- 介绍部分 --><section class="mb-10 text-center max-w-3xl mx-auto"><h2 class="text-[clamp(1.5rem,3vw,2.5rem)] font-bold mb-4 text-dark">海内存知己天涯若比邻</h2><p class="text-gray-600 text-lg">输入贷款信息,选择还款方式,立即获取详细的还款计划,帮助您更好地规划财务。</p></section><div class="grid grid-cols-1 lg:grid-cols-3 gap-8"><!-- 表单部分 --><section class="lg:col-span-1 bg-white rounded-xl p-6 card-shadow fade-in"><h3 class="text-xl font-bold mb-6 text-dark flex items-center"><i class="fa-solid fa-pencil-square text-primary mr-2"></i>贷款信息</h3><form id="loanForm" class="space-y-5"><div class="space-y-2"><label for="loanAmount" class="block text-sm font-medium text-gray-700">贷款金额 (元)</label><div class="relative"><span class="absolute inset-y-0 left-0 pl-3 flex items-center text-gray-500"><i class="fa-solid fa-money-bill-wave"></i></span><input type="number" id="loanAmount" name="loanAmount" min="1" step="any" class="pl-10 w-full rounded-lg border-gray-300 shadow-sm input-focus py-3 px-4 border focus:outline-none" placeholder="请输入贷款金额" required></div></div><div class="space-y-2"><label for="loanTerm" class="block text-sm font-medium text-gray-700">贷款年限</label><div class="relative"><span class="absolute inset-y-0 left-0 pl-3 flex items-center text-gray-500"><i class="fa-solid fa-calendar"></i></span><input type="number" id="loanTerm" name="loanTerm" min="1" max="30" step="any" class="pl-10 w-full rounded-lg border-gray-300 shadow-sm input-focus py-3 px-4 border focus:outline-none" placeholder="请输入贷款年限" required></div></div><div class="space-y-2"><label for="interestRate" class="block text-sm font-medium text-gray-700">贷款利率 (%)</label><div class="relative"><span class="absolute inset-y-0 left-0 pl-3 flex items-center text-gray-500"><i class="fa-solid fa-percent"></i></span><input type="number" id="interestRate" name="interestRate" min="0.01" step="0.01" class="pl-10 w-full rounded-lg border-gray-300 shadow-sm input-focus py-3 px-4 border focus:outline-none" placeholder="请输入年利率" required></div></div><div class="space-y-2"><label for="repaymentType" class="block text-sm font-medium text-gray-700">还款方式</label><div class="relative"><span class="absolute inset-y-0 left-0 pl-3 flex items-center text-gray-500"><i class="fa-solid fa-list-ul"></i></span><select id="repaymentType" name="repaymentType" class="pl-10 w-full rounded-lg border-gray-300 shadow-sm input-focus py-3 px-4 border focus:outline-none appearance-none bg-white"><option value="equal-principal-interest">等额本息</option><option value="equal-principal">等额本金</option></select><div class="pointer-events-none absolute inset-y-0 right-0 flex items-center px-3 text-gray-500"><i class="fa-solid fa-chevron-down"></i></div></div></div><div class="space-y-2"><label for="timeUnit" class="block text-sm font-medium text-gray-700">还款周期</label><div class="relative"><span class="absolute inset-y-0 left-0 pl-3 flex items-center text-gray-500"><i class="fa-solid fa-clock"></i></span><select id="timeUnit" name="timeUnit" class="pl-10 w-full rounded-lg border-gray-300 shadow-sm input-focus py-3 px-4 border focus:outline-none appearance-none bg-white"><option value="year">年</option><option value="month">月</option></select><div class="pointer-events-none absolute inset-y-0 right-0 flex items-center px-3 text-gray-500"><i class="fa-solid fa-chevron-down"></i></div></div></div><button type="submit" class="w-full bg-primary hover:bg-primary/90 text-white font-medium py-3 px-4 rounded-lg btn-hover transition-all duration-300 flex items-center justify-center"><i class="fa-solid fa-calculator mr-2"></i>计算还款计划</button></form></section><!-- 结果展示部分 --><section class="lg:col-span-2 bg-white rounded-xl p-6 card-shadow fade-in"><h3 class="text-xl font-bold mb-6 text-dark flex items-center"><i class="fa-solid fa-table text-primary mr-2"></i>还款计划</h3><div id="summary" class="mb-8 bg-blue-50 rounded-lg p-5 border-l-4 border-primary hidden"><div class="grid grid-cols-1 md:grid-cols-3 gap-4"><div class="text-center"><p class="text-sm text-gray-600 mb-1">贷款总额</p><p class="text-xl font-bold text-dark" id="totalLoanAmount">¥0.00</p></div><div class="text-center"><p class="text-sm text-gray-600 mb-1">总支付利息</p><p class="text-xl font-bold text-dark" id="totalInterest">¥0.00</p></div><div class="text-center"><p class="text-sm text-gray-600 mb-1">还款总额</p><p class="text-xl font-bold text-dark" id="totalPayment">¥0.00</p></div></div></div><div id="paymentScheduleContainer" class="overflow-x-auto"><table id="paymentSchedule" class="min-w-full divide-y divide-gray-200 hidden"><thead class="bg-gray-50"><tr><th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">期数</th><th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">还款本金</th><th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">还款利息</th><th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">还款总额</th></tr></thead><tbody class="bg-white divide-y divide-gray-200" id="paymentScheduleBody"><!-- 表格内容将通过JavaScript动态生成 --></tbody></table></div><div id="noResult" class="py-16 text-center"><div class="inline-flex items-center justify-center w-16 h-16 rounded-full bg-blue-100 mb-4"><i class="fa-solid fa-calculator text-primary text-2xl"></i></div><h4 class="text-lg font-medium text-gray-900 mb-2">请输入贷款信息并计算</h4><p class="text-gray-500 max-w-md mx-auto">填写左侧表单并点击"计算还款计划"按钮,即可查看详细的还款计划</p></div></section></div></main><footer class="bg-dark text-white py-8 mt-10"><div class="container mx-auto px-4"><div class="grid grid-cols-1 md:grid-cols-3 gap-8"><div><h3 class="text-lg font-bold mb-4">贷款计算器</h3><p class="text-gray-400">帮助您轻松计算各种贷款的还款计划,做出明智的财务决策。</p></div><div><h3 class="text-lg font-bold mb-4">快速链接</h3><ul class="space-y-2"><li><a href="#" class="text-gray-400 hover:text-white transition-colors">首页</a></li><li><a href="#" class="text-gray-400 hover:text-white transition-colors">贷款指南</a></li><li><a href="#" class="text-gray-400 hover:text-white transition-colors">联系我们</a></li></ul></div><div><h3 class="text-lg font-bold mb-4">联系我们</h3><ul class="space-y-2"><li class="flex items-center"><i class="fa-solid fa-envelope text-primary mr-2"></i><a href="mailto:support@loancalculator.com" class="text-gray-400 hover:text-white transition-colors">support@loancalculator.com</a></li><li class="flex items-center"><i class="fa-solid fa-phone text-primary mr-2"></i><a href="tel:+8612345678901" class="text-gray-400 hover:text-white transition-colors">+86 123 4567 8901</a></li></ul></div></div><div class="border-t border-gray-800 mt-8 pt-8 text-center text-gray-400"><p>&copy; 2025 贷款计算器 版权所有</p></div></div></footer><script>document.addEventListener('DOMContentLoaded', function() {const loanForm = document.getElementById('loanForm');const paymentSchedule = document.getElementById('paymentSchedule');const paymentScheduleBody = document.getElementById('paymentScheduleBody');const summary = document.getElementById('summary');const noResult = document.getElementById('noResult');const totalLoanAmount = document.getElementById('totalLoanAmount');const totalInterest = document.getElementById('totalInterest');const totalPayment = document.getElementById('totalPayment');loanForm.addEventListener('submit', function(e) {e.preventDefault();// 获取表单值const loanAmount = parseFloat(document.getElementById('loanAmount').value);const loanTerm = parseFloat(document.getElementById('loanTerm').value);const interestRate = parseFloat(document.getElementById('interestRate').value);const repaymentType = document.getElementById('repaymentType').value;const timeUnit = document.getElementById('timeUnit').value;// 计算还款计划let schedule = [];let totalInterestAmount = 0;if (repaymentType === 'equal-principal-interest') {// 等额本息[schedule, totalInterestAmount] = calculateEqualPrincipalInterest(loanAmount, loanTerm, interestRate, timeUnit);} else {// 等额本金[schedule, totalInterestAmount] = calculateEqualPrincipal(loanAmount, loanTerm, interestRate, timeUnit);}// 显示结果displayResults(schedule, loanAmount, totalInterestAmount);});// 等额本息计算function calculateEqualPrincipalInterest(principal, years, annualRate, timeUnit) {const rate = annualRate / 100;let periods;let ratePerPeriod;if (timeUnit === 'year') {periods = years;ratePerPeriod = rate;} else {periods = years * 12;ratePerPeriod = rate / 12;}// 计算每期还款额const payment = principal * ratePerPeriod * Math.pow(1 + ratePerPeriod, periods) / (Math.pow(1 + ratePerPeriod, periods) - 1);let schedule = [];let remainingPrincipal = principal;let totalInterest = 0;for (let i = 1; i <= periods; i++) {const interest = remainingPrincipal * ratePerPeriod;const principalPayment = payment - interest;remainingPrincipal -= principalPayment;// 最后一期调整可能的浮点数精度问题if (i === periods && Math.abs(remainingPrincipal) < 0.01) {remainingPrincipal = 0;}totalInterest += interest;schedule.push({period: i,principal: principalPayment,interest: interest,total: payment,remaining: remainingPrincipal});}return [schedule, totalInterest];}// 等额本金计算function calculateEqualPrincipal(principal, years, annualRate, timeUnit) {const rate = annualRate / 100;let periods;let ratePerPeriod;if (timeUnit === 'year') {periods = years;ratePerPeriod = rate;} else {periods = years * 12;ratePerPeriod = rate / 12;}const principalPayment = principal / periods;let remainingPrincipal = principal;let totalInterest = 0;let schedule = [];for (let i = 1; i <= periods; i++) {const interest = remainingPrincipal * ratePerPeriod;const payment = principalPayment + interest;remainingPrincipal -= principalPayment;// 最后一期调整可能的浮点数精度问题if (i === periods && Math.abs(remainingPrincipal) < 0.01) {remainingPrincipal = 0;}totalInterest += interest;schedule.push({period: i,principal: principalPayment,interest: interest,total: payment,remaining: remainingPrincipal});}return [schedule, totalInterest];}// 显示计算结果function displayResults(schedule, principal, totalInterestAmount) {// 清空表格paymentScheduleBody.innerHTML = '';// 显示结果区域,隐藏无结果提示paymentSchedule.classList.remove('hidden');summary.classList.remove('hidden');noResult.classList.add('hidden');// 填充表格schedule.forEach(payment => {const row = document.createElement('tr');row.className = 'hover:bg-gray-50 transition-colors';// 添加动画延迟row.style.animation = `fadeIn 0.5s ease-in-out ${payment.period * 0.05}s forwards`;row.style.opacity = '0';row.innerHTML = `<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">${payment.period}</td><td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">¥${payment.principal.toFixed(2)}</td><td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">¥${payment.interest.toFixed(2)}</td><td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-primary">¥${payment.total.toFixed(2)}</td>`;paymentScheduleBody.appendChild(row);});// 更新摘要信息totalLoanAmount.textContent = `¥${principal.toFixed(2)}`;totalInterest.textContent = `¥${totalInterestAmount.toFixed(2)}`;totalPayment.textContent = `¥${(principal + totalInterestAmount).toFixed(2)}`;// 滚动到结果区域paymentSchedule.scrollIntoView({ behavior: 'smooth', block: 'start' });}});</script>
</body>
</html>

这里是版本二:视图效果如下
在这里插入图片描述
下面是源码

<!DOCTYPE html>
<html lang="zh-CN">
<head><meta charset="UTF-8"><title>贷款计算器</title><style>body {font-family: Arial, sans-serif;max-width: 1000px;margin: 20px auto;padding: 20px;}.input-group {margin: 10px 0;display: flex;align-items: center;gap: 10px;}input, select {padding: 8px;border: 1px solid #ddd;border-radius: 4px;}button {padding: 10px 20px;background-color: #4CAF50;color: white;border: none;border-radius: 4px;cursor: pointer;}button:hover {background-color: #45a049;}table {width: 100%;margin-top: 20px;border-collapse: collapse;}th, td {border: 1px solid #ddd;padding: 8px;text-align: center;}th {background-color: #f2f2f2;}</style>
</head>
<body><div class="input-group"><label>贷款金额:</label><input type="number" id="amount" placeholder="元"><label>贷款年限:</label><input type="number" id="years" placeholder="年"><label>贷款利率:</label><input type="number" id="rate" placeholder="%" step="0.01"><select id="method"><option value="equalPrincipalAndInterest">等额本息</option><option value="equalPrincipal">等额本金</option></select><select id="unit"><option value="year">按年显示</option><option value="month">按月显示</option></select><button onclick="calculate()">计算</button></div><table id="resultTable"><thead><tr><th>期数</th><th>还款本金</th><th>还款利息</th><th>还款总额</th></tr></thead><tbody id="resultBody"></tbody></table><script>function calculate() {// 获取输入值const amount = parseFloat(document.getElementById('amount').value);const years = parseFloat(document.getElementById('years').value);const rate = parseFloat(document.getElementById('rate').value) / 100;const method = document.getElementById('method').value;const unit = document.getElementById('unit').value;// 输入验证if (!amount || !years || !rate) {alert('请输入完整有效的数值');return;}// 计算总月数const totalMonths = years * 12;let results = [];if (method === 'equalPrincipalAndInterest') {// 等额本息计算const monthlyRate = rate / 12;const monthlyPayment = (amount * monthlyRate * Math.pow(1 + monthlyRate, totalMonths)) / (Math.pow(1 + monthlyRate, totalMonths) - 1);let remaining = amount;for (let i = 1; i <= totalMonths; i++) {const interest = remaining * monthlyRate;const principal = monthlyPayment - interest;remaining -= principal;results.push({principal: principal,interest: interest,total: principal + interest});}} else {// 等额本金计算const monthlyPrincipal = amount / totalMonths;let remaining = amount;for (let i = 1; i <= totalMonths; i++) {const interest = remaining * rate / 12;remaining -= monthlyPrincipal;results.push({principal: monthlyPrincipal,interest: interest,total: monthlyPrincipal + interest});}}// 处理显示单位const displayResults = [];if (unit === 'year') {// 按年汇总for (let year = 0; year < years; year++) {let yearPrincipal = 0;let yearInterest = 0;for (let month = 0; month < 12; month++) {const index = year * 12 + month;if (index >= results.length) break;yearPrincipal += results[index].principal;yearInterest += results[index].interest;}displayResults.push({principal: yearPrincipal,interest: yearInterest,total: yearPrincipal + yearInterest});}} else {// 直接使用月度数据displayResults.push(...results);}// 显示结果const tbody = document.getElementById('resultBody');tbody.innerHTML = '';displayResults.forEach((item, index) => {const row = `<tr><td>${index + 1}</td><td>${item.principal.toFixed(2)}</td><td>${item.interest.toFixed(2)}</td><td>${item.total.toFixed(2)}</td></tr>`;tbody.innerHTML += row;});}</script>
</body>
</html>

完结!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.pswp.cn/web/81022.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

自制操作系统day8 (鼠标数据取得、通往32位模式之路、A20GATE、切换到保护模式、控制寄存器cr0-cr4以及cr8、ALIGNB)

day8 鼠标数据取得方法 fifo8_init(&mousefifo, 128, mousebuf); for (;;) { io_cli(); if (fifo8_status(&keyfifo) fifo8_status(&mousefifo) 0) { io_stihlt(); } else { if (fifo8_status(&keyfifo) ! 0) { i fifo8_get(&keyfifo); io_sti(); spr…

IP大科普:住宅IP、机房IP、原生IP、双ISP

不同类型的IP在跨境电商、广告营销、网络技术、数据收集等领域都有广泛应用&#xff0c;比如常见的住宅IP、机房IP、原生IP、双ISP等&#xff0c;这些IP分别都有什么特点&#xff0c;发挥什么作用&#xff0c;适合哪些业务场景&#xff1f; 一、IP类型及其作用 1.住宅IP 住宅…

Elasticsearch面试题带答案

Elasticsearch面试题带答案 Elasticsearch面试题及答案【最新版】Elasticsearch高级面试题大全(2025版),发现网上很多Elasticsearch面试题及答案整理都没有答案,所以花了很长时间搜集,本套Elasticsearch面试题大全,Elasticsearch面试题大汇总,有大量经典的Elasticsearch面…

Eigen与OpenCV矩阵操作全面对比:最大值、最小值、平均值

功能对比总表 功能Eigen 方法OpenCV 方法主要区别最大值mat.maxCoeff(&row, &col)cv::minMaxLoc(mat, NULL, &maxVal, NULL, &maxLoc)Eigen需要分开调用&#xff0c;OpenCV一次获取最小值mat.minCoeff(&row, &col)cv::minMaxLoc(mat, &minVal, NU…

echarts之双折线渐变图

vue3echarts实现双折线渐变图 echarts中文官网&#xff1a;https://echarts.apache.org/examples/zh/index.html 效果图展示&#xff1a; 整体代码如下&#xff1a; <template><div id"lineChart" style"width:100%;height:400px;"></di…

MD编辑器推荐【Obsidian】含下载安装和实用教程

为什么推荐 Obsidian &#xff1f; 免费 &#xff08;Typora 开始收费了&#xff09;Typora 实现的功能&#xff0c;它都有&#xff01;代码块可一键复制 文件目录支持文件夹 大纲支持折叠、搜索 特色功能 – 白板 特色功能 – 关系图谱 下载 https://pan.baidu.com/s/1I1fSly…

vue 鼠标经过时显示/隐藏其他元素

方式一&#xff1a; 使用纯css方式 , :hover是可以控制其他元素 1、 当两个元素是父子关系 <div class"all_" ><div> <i class"iconfont icon-sun sun"></i></div> </div> .all_{} .sun {display: none; /* 默认…

静态网站部署:如何通过GitHub免费部署一个静态网站

GitHub提供的免费静态网站托管服务可以无需担心昂贵的服务器费用和复杂的设置步骤&#xff0c;本篇文章中将一步步解如何通过GitHub免费部署一个静态网站&#xff0c;帮助大家将创意和作品快速展现给世界。 目录 了解基础情况 创建基础站点 在线调试站点 前端项目部署 部署…

Pytorch里面多任务Loss是加起来还是分别backward? | Pytorch | 深度学习

当你在深度学习中进入“多任务学习(Multi-task Learning)”的领域,第一道关卡可能不是设计网络结构,也不是准备数据集,而是:多个Loss到底是加起来一起backward,还是分别backward? 这个问题看似简单,却涉及PyTorch计算图的构建逻辑、自动求导机制、内存管理、任务耦合…

基于DPABI提取nii文件模板的中心点坐标

基于DPABI提取nii文件模板的中心点坐标 在使用DPABI&#xff08;Data Processing Assistant for Resting-State fMRI&#xff09;处理NIfTI&#xff08;.nii&#xff09;文件时&#xff0c;可以通过以下步骤提取模板中每个坐标点的中心点坐标&#xff1a;https://wenku.csdn.n…

redis 基本命令-17 (KEYS、EXISTS、TYPE、TTL)

Redis 基本命令&#xff1a;KEYS、EXISTS、TYPE、TTL Redis 提供了一套基本命令&#xff0c;这些命令对于管理密钥和了解数据库中存储的数据至关重要。这些命令虽然简单&#xff0c;但提供了对 Redis 实例的结构和状态的重要见解。具体来说&#xff0c;KEYS、EXISTS、TYPE 和 …

加速leveldb查询性能之Cache技术

加速leveldb查询性能之Cache技术 目录 1.两种Cache2.Table Cache3.Block Cache 注&#xff1a;本节所有内容更新至星球。 学习本节之前最好提前需要学习前面两篇文章&#xff0c;这样便好理解本节内容。 多图文讲解leveldb之SST/LDB文件格式 【深入浅出leveldb】LRU与哈希表 1.…

5.2.3 使用配置文件方式整合MyBatis

本实战通过使用Spring Boot和MyBatis技术栈&#xff0c;实现了文章列表显示功能。首先&#xff0c;通过创建ArticleMapper接口和对应的ArticleMapper.xml配置文件&#xff0c;实现了对文章数据的增删改查操作&#xff0c;并通过单元测试验证了功能的正确性。接着&#xff0c;通…

Node.js 源码架构详解

Node.js 的源码是一个庞大且复杂的项目&#xff0c;它主要由 C 和 JavaScript 构成。要完全理解每一部分需要大量的时间和精力。我会给你一个高层次的概述&#xff0c;并指出一些关键的目录和组件&#xff0c;帮助你开始探索。 Node.js 的核心架构 Node.js 的核心可以概括为以…

【NLP 76、Faiss 向量数据库】

压抑与痛苦&#xff0c;那些辗转反侧的夜&#xff0c;终会让我们更加强大 —— 25.5.20 Faiss&#xff08;Facebook AI Similarity Search&#xff09;是由 Facebook AI 团队开发的一个开源库&#xff0c;用于高效相似性搜索的库&#xff0c;特别适用于大规模向…

Go 语言简介

1. Go 语言简介 1.1 什么是 Go 语言 Go语言&#xff0c;通常被称为Golang&#xff0c;是由Google在2007年开始开发&#xff0c;并在2009年正式发布的一种开源编程语言。Go语言的设计初衷是解决大型软件开发中的效率和可维护性问题&#xff0c;特别是在多核处理器和网络化系统…

VMware虚拟机突然无法ssh连接

遇到的情况&#xff1a; 功能全部正常的情况下&#xff0c;没有修改任何配置&#xff0c;重启电脑之后无法ssh连接 其实不太可能的可能原因&#xff1a; 1、虚拟机内部sshd服务未运行 systemctl status sshd systemctl start sshd 2、检查SSH端口监听 netstat -an | grep :…

[ 计算机网络 ] | 宏观谈谈计算机网络

&#xff08;目录占位&#xff09; 网络间通信&#xff0c;本质是不同的两个用户通信&#xff1b;本质是两个不同主机上的两个进程间通信。 因为物理距离的提升&#xff0c;就衍生出了很多问题。TCP/IP协议栈 / OSI七层模型&#xff0c;将协议分层&#xff0c;每一层都是为了…

Oracle 11g导出数据库结构和数据

第一种方法&#xff1a;Plsql 利用plsql可视化工具导出&#xff0c;首先根据步骤导出表结构&#xff1a; 工具(Tools)->导出用户对象(export user objects)。 其次导出数据表结构&#xff1a; 工具(Tools)->导出表(export Tables)->选中表->sql inserts(where语…

跟Gemini学做PPT:汇报背景图寻找指南

PPT 汇报背景图寻找指南 既然前端功能已经完善&#xff0c;现在可以专注于汇报了。对于 PPT 背景图&#xff0c;你有几个选择&#xff1a; 1. 内置模板和主题&#xff1a; 优点&#xff1a; 最简单、快速&#xff0c;PowerPoint、Keynote、Google Slides 等演示软件都内置了…