11 2020 档案

摘要:一.if语句 1.基本语法: if(条件 布尔型){ 当条件符合执行的语句 } 2.例子: #include <iostream> using namespace std; int main(){ int a; a = 20; if(a > 10){ // ">" 是大于 cout << "a大于1 阅读全文
posted @ 2020-11-23 14:48 KevinLikesCoding 阅读(3630) 评论(0) 推荐(1) 编辑
摘要:python matplotlib.pyplot 条形图详解 一、创建直方图 可以用bar函数来创建直方图 然后用show函数显示直方图 比如: import matplotlib.pyplot as plt x = [1, 4, 6, 8, 10] y = [3, 5, 4, 7, 5] plt. 阅读全文
posted @ 2020-11-14 19:05 KevinLikesCoding 阅读(553) 评论(0) 推荐(0) 编辑
摘要:迷宫代码如下: #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+ 阅读全文
posted @ 2020-11-13 16:02 KevinLikesCoding 阅读(9012) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示