
杂项
MoYingo
菜狗
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
GA算法练习(代码实现py3)
GA #coding=gbk import random import math import numpy as np import matplotlib.pyplot as plt population_size = 1000 #种群数 generations = 300 # 代数 (迭代次数) chrom_length = 10 # 染色体长 pc = 0.6 # 交配概率 pm = 0.01 # 变异概率 genetic_population = [] # 基因编码 population = []原创 2021-11-25 17:23:15 · 322 阅读 · 0 评论 -
朴素贝叶斯预测天气
#include<iostream> #include<string> #include<cstring> using namespace std; int cnt_sun, cnt_clo,cnt_rain;// 各天气出现频数 int cnt_sun2,cnt_clo2,cnt_rain2;// 各天气在某条件下出现频数 double P_clo,P_rain,P_sun;// 各天气出现概率 double P_clo2,P_rain2,P_sun2;// 某天气出现原创 2021-11-06 12:00:26 · 1791 阅读 · 0 评论 -
关于c++中形参和全局变量同名的问题简单探究
关于c++中形参和全局变量同名的问题简单探究 今天突然想到如果形参和全局变量同名,会如何处理,有如下结果 #include <bits/stdc++.h> #define yes puts("yes"); #define inf 0x3f3f3f3f #define linf 0x3f3f3f3f3f3f3f3f #define ll long long #define ull unsigned long long #define debug(x) cout<<"> "<原创 2021-11-05 13:50:41 · 1612 阅读 · 0 评论 -
八数码游戏练习
八数码游戏练习 #include <iostream> #include <cstring> #include <string> #include <queue> #include <cstdio> #include <set> #include<time.h> #include <map> #include<conio.h> #include<algorithm> #define ll原创 2021-10-15 10:31:24 · 267 阅读 · 0 评论 -
2021-07-10
开博客 include<iostream> using namespace std; int main() { cout<<"Hellow World!"; return 0; }原创 2021-07-10 09:23:16 · 60 阅读 · 0 评论