摘要: 计数 点击查看代码 #Journey to the west.py import jieba txt = open("西游记.txt", "r", encoding='utf-8').read() words = jieba.lcut(txt) counts = {} for word in wor 阅读全文
posted @ 2025-06-23 11:41 昔桯 阅读(6) 评论(0) 推荐(0)
摘要: 点击查看代码 import pygame import sys import random import os from pygame.locals import * # 初始化pygame pygame.init() # 游戏常量 SCREEN_WIDTH = 800 SCREEN_HEIGHT 阅读全文
posted @ 2025-06-23 00:56 昔桯 阅读(17) 评论(0) 推荐(0)