<div class="row">
<div class="medium-12 columns">
<div class="panel">
<h1>Foundation 页面</h1>
<p>重置窗口大小,查看效果!</p>
<button type="button" class="button small">我是按钮!</button>
</div>
</div>
</div>
<div class="row">
<div class="medium-4 columns">
......................
阅读全部
|
孙景旭
贴于 2025年7月29日 21:52
hide
bbsi
#include<bits/stdc++.h>
using namespace std;
int main(){
int a;
std::cin >> a;
for (int i=1;i<a;i++) {
for (int j= 0;j<a-i;j++) {
cout<<" ";
}
for (int j=1;j<=i;j++) {
cout<<'#';
}
......................
阅读全部
|
whywu
贴于 2025年7月29日 21:19
hide
bbsi
#include<string.h>
struct student
{int num;
char name[20];
float score[3];
}stu;
main()
{scanf("%d%s%f%f%f",&stu.num,&stu.name,&stu.score[0], /*要记得每个都要加取地址符*/
&stu.score[1],&stu.score[2]);
void print(struct student *);/*不能在此声明函数*/
print(&stu);
......................
阅读全部
|
wengzixi
贴于 2025年7月29日 18:28
hide
bbsi
#include <iostream>
#include <format>
#include <vector>
#include <string>
#include <thread>
#include <chrono>
#include <random>
#include <ranges>
#include <conio.h>
#include <windows.h>
#include <ctime>
#include <cstdlib>
......................
阅读全部
|
wengzixi
贴于 2025年7月29日 13:54
hide
bbsi
import pygame,sys,random
from pygame.locals import *
#定义颜色变量 目标方块的颜色
redColor = pygame.Color(250,0,0)
#贪吃蛇的颜色
whiteColor = pygame.Color(255,255,255)
#背景颜色
blackColor = pygame.Color(0,0,0)
def gameOver():
pygame.quit()
sys.exit()
......................
阅读全部
|
wengzixi
贴于 2025年7月28日 18:50
hide
bbsi
import pygame,sys,random
from pygame.locals import *
#定义颜色变量 目标方块的颜色
redColor = pygame.Color(250,0,0)
#贪吃蛇的颜色
whiteColor = pygame.Color(255,255,255)
#背景颜色
blackColor = pygame.Color(0,0,0)
def gameOver():
pygame.quit()
sys.exit()
......................
阅读全部
|
wengzixi
贴于 2025年7月28日 18:50
hide
bbsi
import pygame
import random
def main():
# 初始化pygame
pygame.init()
# 默认不全屏
fullscreen = False
# 窗口未全屏宽和高
WIDTH, HEIGHT = 1100, 600
......................
阅读全部
|
wengzixi
贴于 2025年7月28日 18:47
hide
bbsi
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <windows.h>
#define M 50
struct date {
int year;
int month;
int day;
};
struct library {
int book_num; // 图书编号
......................
阅读全部
|
q112q
贴于 2025年7月7日 11:14
hide
bbsi
import pygame
import sys
import math
import random
from pygame.locals import *
# 初始化pygame
pygame.init()
# 屏幕设置
SCREEN_WIDTH = 1200
SCREEN_HEIGHT = 700
......................
阅读全部
|
宇智波泉奈
贴于 2025年7月5日 16:51
hide
bbsi