摘要: import torch import torch.nn as nn import torch.optim as optim from torch.utils.data import DataLoader from torchvision.datasets import CIFAR10 from t 阅读全文
posted @ 2025-10-16 11:44 荔枝Y 阅读(8) 评论(0) 推荐(0)
摘要: B站“迪哥谈AI”总结 在人工智能与深度学习领域,卷积神经网络(CNN)作为处理网格结构数据(如图像、语音、时间序列)的核心模型,其原理与应用一直是学习者关注的重点。本次基于哔哩哔哩平台 “迪哥谈 AI” 发布的《膜拜!适合新手入门的卷积神经网络原理详解教程》合集视频,从内容架构、核心知识、学习价值 阅读全文
posted @ 2025-10-16 11:27 荔枝Y 阅读(11) 评论(0) 推荐(0)
摘要: (一)代码 import random import time def print_introduction(): """打印程序介绍信息""" print("=" * 50) print("体育竞技比赛模拟程序") print(f"学号后两位: 23") print("本程序用于模拟乒乓球比赛,根 阅读全文
posted @ 2025-06-21 22:14 荔枝Y 阅读(5) 评论(0) 推荐(0)
摘要: ![](https://img2024.cnblogs.com/blog/3608567/202506/3608567-20250621220558588-1757824316.png) ![](https://img2024.cnblogs.com/blog/3608567/202506/3608567-20250621220619638-5273495.png) ![](https://img 阅读全文
posted @ 2025-06-21 22:07 荔枝Y 阅读(3) 评论(0) 推荐(0)
摘要: 8_1 import random def ping_pong_match(): player1_score = 0 player2_score = 0 while True: # 随机决定得分方 winner = random.choice([1, 2]) if winner == 1: play 阅读全文
posted @ 2025-05-25 19:05 荔枝Y 阅读(8) 评论(0) 推荐(0)
摘要: 7.1 def rewrite_py_file(file_path): try: with open(file_path, 'r', encoding='utf - 8') as f: content = f.read() new_content = "" i = 0 while i < len(c 阅读全文
posted @ 2025-05-16 20:56 荔枝Y 阅读(41) 评论(0) 推荐(0)
摘要: 5.1 5.2 5.3 5.4 def PrimeList(N): result = [] for num in range(2, N): if isPrime(num): result.append(num) return " ".join(map(str, result)) 5.5 def is 阅读全文
posted @ 2025-04-20 22:23 荔枝Y 阅读(7) 评论(0) 推荐(0)
摘要: 4.1 t=425 guess = 0 count=0 while guess !=t: #未知循坏次数,故用while一直循环,直到数值正确 guess=eval(input('请输入猜测数字(1~1000):')) if guess>t: print('猜大了') count+=1 elif g 阅读全文
posted @ 2025-04-04 16:56 荔枝Y 阅读(7) 评论(0) 推荐(0)
摘要: 3.19 3.20 3.21 p125 3.6 3.7 3.8 阅读全文
posted @ 2025-03-30 15:24 荔枝Y 阅读(8) 评论(0) 推荐(0)
摘要: 3.1 3.2 3.3 3.4 3.5 阅读全文
posted @ 2025-03-23 12:29 荔枝Y 阅读(7) 评论(0) 推荐(0)