- 博客(3)
- 资源 (1)
- 收藏
- 关注
原创 python_实现bilibili三连图案
就是python小海龟,没啥好说的,代码献上——import turtledef likes(x,y): t = turtle.Turtle() t.ht() t.pencolor("#FFB6C1") t.fillcolor("#FFB6C1") t.speed(0) t.up() t.goto(x,y) t.down() t.begin_fill() t.fd(50) t.right(90) t..
2022-03-28 16:09:31
587
原创 c++_实现简单扫雷
扫雷,炸脑的游戏,必须的(大佬不会)。但现在win10扫雷好像不自带扫雷了————(︶^︶)所以我们来自制一个吧!!!话不多说,代码奉上-#include <iostream>#include <cstdlib>#include <ctime>#include <string>#include <windows.h>#define random(n1,n) rand()%(n-n1)+(n1)using name
2022-03-22 10:46:30
1842
原创 c++_实现杨辉三角(直角三角)
c++实现杨辉三角。因为杨辉三角每个数字等于上一行的左右两个数字之和,但我们实现的是直角三角,所以每个数字等于上方和左上方两个数字之和。#include <iostream>using namespace std; int main(){ int n=8; int arr[n][n]={0}; //创建二维数组 for(int i=0;i<n;i++){ arr[i][0]=1; //第一列为1 arr[i][i]=1; //斜边为1
2022-03-21 21:26:14
3117
2
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人