2025年11月13日
摘要: import os os.environ['KMP_DUPLICATE_LIB_OK'] = 'True' import torch import torch.nn as nn import torch.optim as optim import torchvision.transforms as 阅读全文
posted @ 2025-11-13 19:46 雨水啊 阅读(2) 评论(0) 推荐(0)
  2025年10月15日
摘要: 一、视频概述 这是一套面向深度学习初学者与实践者的经典视频教程,以 “理论 + 实战” 为核心思路,共 12 个模块,前 3 个模块铺垫 Python 数据科学基础与 PyTorch 环境搭建,第 4-9 模块聚焦神经网络核心技术,从基础感知机到复杂的卷积神经网络(CNN)、循环神经网络(RNN), 阅读全文
posted @ 2025-10-15 20:24 雨水啊 阅读(97) 评论(0) 推荐(0)
摘要: 代码: import torch import torch.nn as nn import torch.optim as optim import torch.nn.functional as F from torch.utils.data import DataLoader import torc 阅读全文
posted @ 2025-10-15 20:14 雨水啊 阅读(9) 评论(0) 推荐(0)
  2025年6月22日
摘要: 作为一名大学生,接触 Python 编程至今已有一段时间,在这段学习历程中,我收获了许多知识与感悟,也经历了从迷茫到逐渐清晰的过程。​ 最初接触 Python,是因为课程安排,当时对这门编程语言并没有太多的了解,只觉得它或许和其他编程语言一样枯燥难懂。但随着学习的深入,我逐渐被 Python 简洁明 阅读全文
posted @ 2025-06-22 13:18 雨水啊 阅读(34) 评论(0) 推荐(0)
  2025年6月17日
摘要: from random import random def printIntro(): print("这个程序模拟两个选手A和B的乒乓球比赛") print("程序运行需要A和B的能力值(以0到1之间的小数表示)") def getInputs(): a = eval(input("请输入选手A的能 阅读全文
posted @ 2025-06-17 08:07 雨水啊 阅读(8) 评论(0) 推荐(0)
摘要: import pygame import random import sys 初始化pygame pygame.init() 定义颜色 WHITE = (255, 255, 255) BLACK = (0, 0, 0) RED = (255, 0, 0) GREEN = (0, 255, 0) BL 阅读全文
posted @ 2025-06-17 08:05 雨水啊 阅读(13) 评论(0) 推荐(0)
摘要: import jieba from collections import Counter import re with open('xiyouji.txt', 'r', encoding='utf-8') as f: text = f.read() words = jieba.lcut(text) 阅读全文
posted @ 2025-06-17 08:00 雨水啊 阅读(3) 评论(0) 推荐(0)
摘要: import pygame import random import sys 初始化pygame pygame.init() 游戏常量 SCREEN_WIDTH, SCREEN_HEIGHT = 800, 600 GRID_SIZE = 80 LANES = 5 COLUMNS = 9 FPS = 阅读全文
posted @ 2025-06-17 07:54 雨水啊 阅读(32) 评论(0) 推荐(0)
  2025年5月25日
摘要: import random def printIntro(): print("这个程序模拟两个选手A和B的乒乓球竞技比赛") print("程序运行需要A和B的能力值(以0到1之间的小数表示)") def getInputs(): a = float(input("请输入选手A的能力值(0-1): 阅读全文
posted @ 2025-05-25 18:33 雨水啊 阅读(80) 评论(0) 推荐(0)
  2025年5月18日
摘要: import keyword def rewrite_py_file(input_file_path, output_file_path): with open(input_file_path, 'r', encoding='utf - 8') as f: content = f.read() ne 阅读全文
posted @ 2025-05-18 14:46 雨水啊 阅读(61) 评论(0) 推荐(0)