最新发布第19页
排序
【Python】学生信息管理系统示例
import os.path #导入os.path模块 def menm(): #菜单 print('==========================学生信息管理系统==========================') print('----------------------------...
【人工智能】【Python】线性回归算法实验
本实验运用线性回归、岭回归和Lasso回归模型,基于包含442个样本的糖尿病数据集探究正则化方法对模型拟合的影响。通过引入正态分布噪声模拟实际数据特性,使用Z-score标准化后划分训练集/测试集...
【C】if-else if-else和switch-case
if-else if-else #include<stdio.h> int main() { int type=0; scanf('%d',&type); if (type==1) printf('早'); else if (type==2) printf('中'); else if (type==3) printf('晚'); else...
【Linux】记录一次逆天&抽象的PVE故障修复记录
我记录了一次修复PVE服务器启动失败的经历。故障原因是安装ntpdate与系统网络服务ifupdown2冲突,导致开机时卡死。由于系统使用了ZFS文件系统,标准的救援模式无法进入,我只能通过Ventoy启动Ub...
【模拟】各位相加
#include<iostream> using namespace std; int main(){ int num; cin >> num; while(num>9){ int total=0; while(num!=0){ total+=num%10; num/=10; } num = total; total = 0; } cout <&...
【C++】四舍五入
#include <iostream> #include <cmath> using namespace std; float a[100000]; int main(){ int n; cin >> n; for (int i=0;i<n;i++){ cin >> a[i]; } for (int i=0;i<n;i++){ cou...










































