摘要:
import jieba text=open('C:\Users\李文卓\Desktop\xn\红楼梦.txt',"r",encoding='utf-8').read() words=jieba.lcut(text) counts={} for word in words: if len(word) 阅读全文
posted @ 2023-12-28 14:48
李文卓
阅读(34)
评论(0)
推荐(0)
摘要:
import pygame import sys import random import numpy as np class Bird(object): """定义一个鸟类""" def __init__(self): """定义初始化方法""" self.birdRect = pygame.Re 阅读全文
posted @ 2023-12-28 14:40
李文卓
阅读(63)
评论(0)
推荐(0)
摘要:
Numpy: 存储和处理大型矩阵,比Python自身的嵌套列表结构高效,由C语言开发。数据结构为ndarray,一般有三种方式来创建。 Pandas: 基于NumPy 的一种工具,该工具是为了解决数据分析任务而创建的。Pandas 纳入了大量库和一些标准的数据模型,提供了高效地操作大型数据集所需的工 阅读全文
Numpy: 存储和处理大型矩阵,比Python自身的嵌套列表结构高效,由C语言开发。数据结构为ndarray,一般有三种方式来创建。 Pandas: 基于NumPy 的一种工具,该工具是为了解决数据分析任务而创建的。Pandas 纳入了大量库和一些标准的数据模型,提供了高效地操作大型数据集所需的工 阅读全文
posted @ 2023-12-28 14:35
李文卓
阅读(12)
评论(0)
推荐(0)
摘要:
import random def print_intro(): print("排球比赛模拟程序") print(" ") def input_teams(): team1_ability = float(input("请输入第一个球队的能力值:")) team2_ability = float(i 阅读全文
import random def print_intro(): print("排球比赛模拟程序") print(" ") def input_teams(): team1_ability = float(input("请输入第一个球队的能力值:")) team2_ability = float(i 阅读全文
posted @ 2023-12-28 14:24
李文卓
阅读(12)
评论(0)
推荐(0)
浙公网安备 33010602011771号