摘要: from math import logdef calcShannonEnt(dataSet): # 对信息熵的计算 numEntries = len(dataSet) labelCounts={} for featVec in dataSet: currentLabel=featVec[-1] i 阅读全文
posted @ 2020-10-24 17:22 TheShy'sfans 阅读(503) 评论(0) 推荐(0)
摘要: from datetime import datetime current_data=datetime.strptime(row[0],'%Y-%m-%d') 阅读全文
posted @ 2020-10-09 20:25 TheShy'sfans 阅读(109) 评论(0) 推荐(0)
摘要: 下面的内容是我根据自己的理解以及matplotlib.pyplot.tick_params官网的解释翻译过来的,希望对大家有帮助。 可以写成plt.tick_params(axis=‘both’, **kwargs), 也可以通过ax = plt.gca() ,写成ax.tick_params(ax 阅读全文
posted @ 2020-10-09 10:04 TheShy'sfans 阅读(4099) 评论(0) 推荐(0)
摘要: 打开cmd在python的安装目录下进行安装cd C:\Users\Administrator\AppData\Local\Programs\Python\Python38-32\Scripts 使用命令 pip install pygal卸载的命令 pip uninstall pygal 阅读全文
posted @ 2020-10-08 17:26 TheShy'sfans 阅读(526) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2020-09-20 09:01 TheShy'sfans 阅读(144) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2019-05-24 11:17 TheShy'sfans 阅读(173) 评论(0) 推荐(0)
摘要: 需要的jar包:poi-3.14.jar List集合导出成Excel表格 实体类 package job.util; /** * * @className Employee * @deprecated 导出的实体 * @author pengfei.xiong * @date 2017年10月9日 阅读全文
posted @ 2019-05-11 19:43 TheShy'sfans 阅读(257) 评论(0) 推荐(0)
摘要: alter table footprint add constraint pk_footprint primary key (uid,pid) --添加主键约束 alter table footprint add constraint FK_product_footprint foreign key 阅读全文
posted @ 2019-05-04 09:26 TheShy'sfans 阅读(574) 评论(0) 推荐(0)