摘要: 神经网络读书报告 神经网络是模拟生物神经系统结构与功能的人工智能模型,其核心思想源于对人类大脑神经元连接机制的仿生设计。自 20 世纪 40 年代 “感知器” 概念提出以来,神经网络经历了 “兴起 — 低谷 — 复兴” 的多轮迭代,如今已成为深度学习的核心技术基石,在计算机视觉、自然语言处理、语音识 阅读全文
posted @ 2025-10-15 20:59 你好book 阅读(5) 评论(0) 推荐(0)
摘要: import torch import torch.nn as nn import torch.optim as optim from torch.utils.data import DataLoader from torchvision import datasets, transforms im 阅读全文
posted @ 2025-10-15 20:56 你好book 阅读(3) 评论(0) 推荐(0)
摘要: import pygame import time import random 初始化 Pygame pygame.init() 定义颜色 white = (255, 255, 255) yellow = (255, 255, 102) black = (0, 0, 0) red = (213, 5 阅读全文
posted @ 2025-06-21 16:26 你好book 阅读(12) 评论(0) 推荐(0)
摘要: import random import matplotlib.pyplot as plt from collections import defaultdict class TableTennisGame: def init(self, player1, player2, win_games=4) 阅读全文
posted @ 2025-06-21 15:21 你好book 阅读(15) 评论(0) 推荐(0)
摘要: import jieba import re from collections import Counter 读取《西游记》文本文件 def read_file(file_path): with open(file_path, 'r', encoding='utf-8') as file: retu 阅读全文
posted @ 2025-06-21 15:19 你好book 阅读(5) 评论(0) 推荐(0)
摘要: 乒乓竞技分析 import random def printIntro(): print("这个程序模拟两个选手A和B的乒乓球比赛") print("程序运行需要A和B的能力值(以0到1之间的小数表示)") def getInputs(): a = float(input("请输入选手A的能力值(0 阅读全文
posted @ 2025-05-25 11:33 你好book 阅读(7) 评论(0) 推荐(0)
摘要: 7.2 import jieba import wordcloud import numpy as np from PIL import Image fname = "第十周\三国演义.txt" with open(fname, "r", encoding="utf-8") as f: ls = j 阅读全文
posted @ 2025-05-18 10:38 你好book 阅读(39) 评论(0) 推荐(0)
摘要: import turtle import datetime def draw_line(draw): """绘制单段数码管""" turtle.pendown() if draw else turtle.penup() turtle.forward(40) turtle.right(90) def 阅读全文
posted @ 2025-05-05 20:10 你好book 阅读(10) 评论(0) 推荐(0)
摘要: 田字格输出 n = eval(input('请输入一个奇数:')) a,b,c,d = '-','+','|',' ' m = n//2 if n%2 == 1: for i in range(n): if i in [0,m,n-1]: print('{0}{1}{0}{1}{0}'.format 阅读全文
posted @ 2025-04-20 15:01 你好book 阅读(23) 评论(0) 推荐(0)
摘要: GuessANum.py import random secret = random.randint(1, 100) guesscuonts = 0 # 记录玩家猜的次数。 print(" 猜数字游戏 ") guess = eval(input("请输入1-100的整数:")) while True 阅读全文
posted @ 2025-03-31 21:30 你好book 阅读(54) 评论(0) 推荐(0)