摘要: import torch import torch.nn as nn import torch.optim as optim from torch.utils.data import Dataset, DataLoader from torchvision import transforms fro 阅读全文
posted @ 2025-11-13 23:04 人间失忆客 阅读(2) 评论(0) 推荐(0)
摘要: 关于卷积神经网络的读书报告 卷积神经网络的基本原理与核心结构 卷积神经网络的核心优势在于“模拟生物视觉系统”,通过层级化的结构逐步提取数据的抽象特征,其基本原理与核心结构可拆解为以下几个部分: (一)核心设计思想 CNN的两大核心思想是“局部感知”与“参数共享”,这也是其区别于传统全连接神经网络的关 阅读全文
posted @ 2025-10-23 23:42 人间失忆客 阅读(8) 评论(0) 推荐(0)
摘要: `import torch import torch.nn as nn import torch.optim as optim from torch.utils.data import DataLoader from torchvision.datasets import CIFAR10 from 阅读全文
posted @ 2025-10-23 23:21 人间失忆客 阅读(5) 评论(0) 推荐(0)
摘要: `import pygame import random import sys 初始化pygame pygame.init() 屏幕设置 SCREEN_WIDTH = 800 SCREEN_HEIGHT = 600 screen = pygame.display.set_mode((SCREEN_W 阅读全文
posted @ 2025-06-23 14:18 人间失忆客 阅读(25) 评论(0) 推荐(0)
摘要: ![](https://img2024.cnblogs.com/blog/3608884/202506/3608884-20250623140829386-1191394932.png) 阅读全文
posted @ 2025-06-23 14:08 人间失忆客 阅读(4) 评论(0) 推荐(0)
摘要: `import turtle import time from datetime import datetime # 用于获取星期 定义7段数码管各段的绘制逻辑(0-9) digit_segments = [ [1, 1, 1, 0, 1, 1, 1], # 0 [0, 0, 1, 0, 0, 1, 阅读全文
posted @ 2025-05-05 14:46 人间失忆客 阅读(30) 评论(0) 推荐(0)
摘要: 5.1字符田字格绘制 `def print_grid(width): # 打印上边界 print("+" + "-" * (width * 2 - 1) + "+") # 打印中间的横线 for _ in range(width - 1): print("|" + " " * (width * 2 阅读全文
posted @ 2025-04-21 12:54 人间失忆客 阅读(6) 评论(0) 推荐(0)
摘要: 4.1猜数字程序的扩展 #GuessANumMore.py target = 425 guess = 0 n = 0 while guess != target: guess = eval(input("请输入一个猜测的整数(1至1000):")) n += 1 if guess != target 阅读全文
posted @ 2025-04-07 23:32 人间失忆客 阅读(6) 评论(0) 推荐(0)
摘要: 3.13 `s="Python String" print(s.upper()) s="Python String" print(s.lower()) s="Python String" print(s.find('i')) s="Python String" print(s.replace('in 阅读全文
posted @ 2025-03-30 23:37 人间失忆客 阅读(10) 评论(0) 推荐(0)
摘要: 3.1 weight_earth=float(input("请输入你现在的体重(kg):")) print("年份/t地球体重(kg)/t月球体重(kg)") for year in range(1,11): weight_earth += 0.5 weight_moon=weight_earth* 阅读全文
posted @ 2025-03-23 22:43 人间失忆客 阅读(22) 评论(0) 推荐(0)