摘要: numpy、scipy、pandas、matplotlib的读书报告 一、numpy的读书报告 1Numpy概述 1.1概念 Numpy提供了两种基本的对象:ndarray和ufunc。Ndarray是存储单一数据类型的多维数组,而ufunc则是能够对数组进行处理的函数。 1.2功能 l 创建n维数 阅读全文
posted @ 2023-12-29 10:08 疯了快疯了 阅读(104) 评论(0) 推荐(0)
摘要: # -*- coding: utf-8 -*- """ Created on Wed Dec 20 00:02:07 2023 @author: chen """ import jieba # 读取文本文件 path = "聊斋志异.txt" file = open(path, "r", encod 阅读全文
posted @ 2023-12-20 00:23 疯了快疯了 阅读(25) 评论(0) 推荐(0)
摘要: import pandas as pd import tkinter as tk from tkinter import messagebox # 创建数据库表 # Excel表中必须包含学号、班级、姓名这三列 class_info = pd.read_excel('students.xlsx') 阅读全文
posted @ 2023-12-19 23:59 疯了快疯了 阅读(38) 评论(0) 推荐(0)
摘要: import requests url = 'https://www.bing.com' for i in range(20): response = requests.get(url) print(f"第{i+1}次访问") print(f'Response status: {response.s 阅读全文
posted @ 2023-12-10 16:34 疯了快疯了 阅读(18) 评论(0) 推荐(0)
摘要: import random import os # 介绍比赛以及程序 def print_introduce(): print("This is a badminton game simulation program") print("The program requires two players 阅读全文
posted @ 2023-12-05 15:20 疯了快疯了 阅读(76) 评论(0) 推荐(0)
摘要: import turtle import datetime import time def draw_gap(): # 绘制数码间隔 turtle.penup() turtle.fd(5) def draw_line(draw): # 绘制单段数码管 draw_gap() turtle.pendow 阅读全文
posted @ 2023-11-20 23:36 疯了快疯了 阅读(44) 评论(0) 推荐(0)
摘要: from math import sqrt from tqdm import tqdm from random import random import time DARTS=10000 hits=0.10000 t=time.perf_counter() for i in tqdm(range(1 阅读全文
posted @ 2023-11-15 09:40 疯了快疯了 阅读(22) 评论(0) 推荐(0)
摘要: 03运行超市抹零结账行为 total_money=float(input('请输入商品总价:')) pay_money=int(total_money) print(pay_money) print() print('学号后四位:3009') 04计算学生成绩的分差和平均分 # # 计算学生成绩的分 阅读全文
posted @ 2023-11-02 18:42 疯了快疯了 阅读(32) 评论(0) 推荐(0)