摘要:
import pygame import sys import random import numpy as np class Bird(object): """定义一个鸟类""" def __init__(self): """定义初始化方法""" self.birdRect = pygame.Re 阅读全文
posted @ 2023-12-29 00:58
Partikel
阅读(12)
评论(0)
推荐(0)
摘要:
NumPy(Numerical Python) 是 Python 语言的一个扩展程序库,支持大量的维度数组与矩阵运算,此外也针对数组运算提供大量的数学函数库。 NumPy 通常与 SciPy(Scientific Python)和 Matplotlib(绘图库)一起使用, 这种组合广泛用于替代 Ma 阅读全文
posted @ 2023-12-29 00:39
Partikel
阅读(30)
评论(0)
推荐(0)
摘要:
import jieba path = "聊斋.txt" file = open(path, "r", encoding="utf-8") text = file.read() file.close() words = jieba.lcut(text) counts = {} for word in 阅读全文
posted @ 2023-12-29 00:38
Partikel
阅读(15)
评论(0)
推荐(0)
浙公网安备 33010602011771号