摘要: import jieba with open('红楼梦.txt','r',encoding='utf-8')as f: txt = f.read() words = jieba.lcut(txt) counts={} for word in words: if len(word) == 1: con 阅读全文
posted @ 2023-12-27 10:22 31014552 阅读(22) 评论(0) 推荐(0)
摘要: import pygame import sys import random class Bird(object): def __init__(self): self.birdRect = pygame.Rect(65, 50, 50, 50) self.birdStatus = [pygame.i 阅读全文
posted @ 2023-12-27 09:54 31014552 阅读(26) 评论(0) 推荐(0)