摘要: import pygame import sys import random import numpy as np class Bird(object): """定义一个鸟类""" def __init__(self): """定义初始化方法""" self.birdRect = pygame.Re 阅读全文
posted @ 2023-12-27 12:39 teshi1 阅读(19) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2023-12-27 12:36 teshi1 阅读(28) 评论(0) 推荐(0)
摘要: ```import jieba # 读取文本文件 path = "西游记.txt" file = open(path, "r", encoding="utf-8") text = file.read() file.close() # 使用jieba分词 words = jieba.lcut(text 阅读全文
posted @ 2023-12-27 12:31 teshi1 阅读(9) 评论(0) 推荐(0)