11 2020 档案
摘要:一.if语句 1.基本语法: if(条件 布尔型){ 当条件符合执行的语句 } 2.例子: #include <iostream> using namespace std; int main(){ int a; a = 20; if(a > 10){ // ">" 是大于 cout << "a大于1
阅读全文
摘要:python matplotlib.pyplot 条形图详解 一、创建直方图 可以用bar函数来创建直方图 然后用show函数显示直方图 比如: import matplotlib.pyplot as plt x = [1, 4, 6, 8, 10] y = [3, 5, 4, 7, 5] plt.
阅读全文
摘要:迷宫代码如下: #include <iostream> #include <windows.h> #include <conio.h> using namespace std; void print(char a[10][10]){ system("cls"); for(int i=0;i<5;i+
阅读全文