摘要: import randomimport os# 介绍比赛以及程序def print_introduce(): print("This is a badminton game simulation program") print("The program requires two players' a 阅读全文
posted @ 2023-12-29 11:31 赵国龙 阅读(33) 评论(0) 推荐(0)
摘要: import pandas as pdimport tkinter as tkfrom tkinter import messageboxclass_info = pd.read_excel(r"F:\WXWork\工作簿1.xlsx")root = tk.Tk()root.title('班级信息收 阅读全文
posted @ 2023-12-29 10:48 赵国龙 阅读(34) 评论(0) 推荐(0)
摘要: 1、NUMPY NumPy(Numerical Python) 是 Python 语言的一个扩展程序库,支持大量的维度数组与矩阵运算,此外也针对数组运算提供大量的数学函数库。 NumPy 是一个运行速度非常快的数学库,主要用于数组计算,包含: 一个强大的N维数组对象 ndarray。 广播功能函数。 阅读全文
posted @ 2023-12-29 09:45 赵国龙 阅读(29) 评论(0) 推荐(0)
摘要: import jiebapath = "all.txt" # 读取文本文件file = open(path, "r", encoding="utf-8")text = file.read()file.close()words = jieba.lcut(text) # 使用jieba分词counts 阅读全文
posted @ 2023-12-29 09:29 赵国龙 阅读(18) 评论(0) 推荐(0)
摘要: print("\n手机店正在打折,活动进行中.......")strweek = input ("请输入中文星期 (如星期一): ")intTime = int(input("请输入时间中的小时(范围:0~23):"))if(strweek=="星期二" and (intTime >=10 and 阅读全文
posted @ 2023-11-01 12:00 赵国龙 阅读(24) 评论(0) 推荐(0)