08 2019 档案

摘要:需求 将相似的文本进行聚类 然后选出同类中最具有代表的一条数据 输入数据: 运行结果如下,聚类前数据有9条 聚类后6条; 字典key为类别,value是表示同一类别的index(text.dat中的行,从0开始) {0: [0, 1, 2], 1: [3, 4], 2: [5], 3: [6], 4 阅读全文
posted @ 2019-08-31 13:33 古月月月胡 阅读(1099) 评论(0) 推荐(0)
摘要:Exchange发送邮件 config.email_url :邮箱服务地址 config.email_user :账户 config.email_pas:密码 163邮箱发送邮件 "https://www.cnblogs.com/xiaodai12138/p/10483158.html" 阅读全文
posted @ 2019-08-31 13:30 古月月月胡 阅读(1478) 评论(0) 推荐(0)
摘要:python docx 安装依赖包 pip install python docx 官方文档: "https://python docx.readthedocs.io/en/latest/index.html" 官方实例非常简洁清晰的展示了python docx生成的文档所包含的大部分功能:各级标题 阅读全文
posted @ 2019-08-31 13:24 古月月月胡 阅读(1851) 评论(0) 推荐(0)
摘要:pygal是个非常简单且功能丰富的py画图包,折线图、柱状图、饼图等常见和不常见的图像都可轻松实现。 下面将介绍安装方法,解决中文字体问题、Linux系统乱码问题,输出PNG文件问题 基础操作: 安装 pip install pygal 文档特别详细: "http://www.pygal.org/e 阅读全文
posted @ 2019-08-31 12:28 古月月月胡 阅读(1815) 评论(0) 推荐(0)
摘要:sublime是我用过的最好的代码编辑器 没有之一,如下搭建sublime 下python环境 sublime安装与基本配置 sublime Text3下载: https://www.sublimetext.com/3 安装Package Control https://packagecontrol 阅读全文
posted @ 2019-08-29 22:49 古月月月胡 阅读(644) 评论(0) 推荐(0)