摘要:
import jieba from collections import Counter import re 首先需要准备聊斋志异的文本文件(假设为liaozhai.txt) 这里我们定义一个函数来读取文件内容 def read_text(file_path): with open("d:聊斋志异. 阅读全文
posted @ 2025-06-21 20:32
he0608
阅读(19)
评论(0)
推荐(0)
摘要:
import pygame import random import sys 初始化 pygame.init() WIDTH, HEIGHT = 800, 600 GRID_SIZE = 20 screen = pygame.display.set_mode((WIDTH, HEIGHT)) pyg 阅读全文
posted @ 2025-06-21 16:31
he0608
阅读(16)
评论(0)
推荐(0)
浙公网安备 33010602011771号