摘要: data #coding=utf-8 import struct import os from PIL import Image DATA_PATH="C:\\Users\\PC\\Desktop\\pytorch\\wz\\HWDB11tst_gnt" #gnt数据文件路径 IMG_PATH="C 阅读全文
posted @ 2025-11-20 22:27 杯影 阅读(0) 评论(0) 推荐(0)
摘要: 《卷积神经网络(CNN)学习感悟》读书报告 24信计2 刘雨坤 摘要 本报告围绕卷积神经网络(CNN)展开深入学习与探讨。通过研读相关资料及观看教学视频,系统梳理了 CNN 的基本概念、核心运算原理、关键组成部分、技术优化策略以及经典网络结构。深刻领会其相较于传统神经网络在处理图像数据时的显著优势, 阅读全文
posted @ 2025-10-15 20:35 杯影 阅读(13) 评论(0) 推荐(0)
摘要: 24信计2 刘雨坤 3110import torch from torch import optim, nn from torchvision import datasets, transforms from torch.utils.data import DataLoader import tor 阅读全文
posted @ 2025-10-15 20:24 杯影 阅读(4) 评论(0) 推荐(0)
摘要: import pygame import random import sys from pygame.locals import * # 初始化pygame pygame.init() # 游戏常量 SCREEN_WIDTH = 800 SCREEN_HEIGHT = 600 FPS = 60 WH 阅读全文
posted @ 2025-06-23 17:22 杯影 阅读(29) 评论(0) 推荐(0)
摘要: import pygame import sys import random # 初始化Pygame pygame.init() # 游戏窗口设置 SCREEN_WIDTH = 800 SCREEN_HEIGHT = 600 screen = pygame.display.set_mode((SCR 阅读全文
posted @ 2025-06-23 17:21 杯影 阅读(10) 评论(0) 推荐(0)
摘要: 实验 0 项目名称: 简易版超级马里奥 实验目的与要求: 实验目的:使用python的pygame库制作一个简易版超级马里奥 实验要求:完成游戏主要内容 实验原理:Pygame框架原理: Pygame是基于SDL库的Python游戏开发库,提供图像渲染、事件处理、声音播放等功能。游戏通过主循环不断更 阅读全文
posted @ 2025-06-23 13:38 杯影 阅读(20) 评论(0) 推荐(0)
摘要: import pygame import sys import random # 初始化pygame pygame.init() # 游戏窗口设置 WIDTH, HEIGHT = 800, 600 screen = pygame.display.set_mode((WIDTH, HEIGHT)) p 阅读全文
posted @ 2025-06-23 11:45 杯影 阅读(18) 评论(0) 推荐(0)
摘要: import random def simulate_one_game(player1, player2): """模拟一局乒乓球比赛,返回该局胜者""" score1, score2 = 0, 0 while True: # 随机得分(0 代表 player1 得分,1 代表 player2 得分 阅读全文
posted @ 2025-06-23 11:06 杯影 阅读(7) 评论(0) 推荐(0)
摘要: import jieba txt=open("C:\\Users\\PC\\Desktop\\聊斋志异.txt","r",encoding='utf-8').read() words=jieba.lcut(txt) counts={} for word in words: if len(word)= 阅读全文
posted @ 2025-06-22 11:42 杯影 阅读(6) 评论(0) 推荐(0)
摘要: Python 语音基础学习报告:开启编程世界的奇妙之旅 踏入大学的大门,我怀揣着对知识的渴望和对未来的憧憬,开启了一段全新的学习征程。在众多引人入胜的课程中,Python 语音基础学习犹如一颗璀璨的星辰,吸引着我不断探索。 初识 Python,它就像一位亲切和蔼的导师,用简洁而优雅的方式向我敞开了编 阅读全文
posted @ 2025-06-22 11:14 杯影 阅读(9) 评论(0) 推荐(0)