摘要: #从txt写入excel workbook = xlsxwriter.Workbook('植保网.xlsx') #创建工作簿 sheet = workbook.add_worksheet() r=0 for line in open('zgzbao_link.1.txt','r',encoding= 阅读全文
posted @ 2019-01-07 21:30 绮梦璇玑 阅读(834) 评论(0) 推荐(0) 编辑
摘要: re模块使python语言拥有全部的正则表达式功能 术语解释: 模式字符串: 可选的标志参数: 'r' 是在告诉编译器这个string是个raw string,不要转义 re.match函数 从起始位置匹配字符串,只有起始位置匹配成功,才返回内容 re.search函数 newUrl=https:/ 阅读全文
posted @ 2018-09-09 10:21 绮梦璇玑 阅读(486) 评论(0) 推荐(0) 编辑
摘要: 安装pandas,命令行输入 pip install pandas 导出pandas以及它主要的两个数据结构Series和DataFrame 从csv或txt文件中读取数据到DataFrame 选择:数据访问(标签、特定值、布尔索引等) 缺失值处理:对缺失数据行进行删除或填充 重复值处理:重复值的判 阅读全文
posted @ 2018-08-20 22:02 绮梦璇玑 阅读(3237) 评论(0) 推荐(0) 编辑
摘要: from pandas import Series,DataFrameimport pandas as pdimport matplotlib.pyplot as pltimport numpy as npdf = DataFrame({'key1' : ['a', 'a', 'b', 'b', ' 阅读全文
posted @ 2018-07-26 19:03 绮梦璇玑 阅读(1000) 评论(0) 推荐(0) 编辑
摘要: 将本地文件上传linux服务器: D:\Program Files\PuTTY>pscp D:\python\pythonwork\jobui\rpxcorp.py root@47.104.109.83:/home/nyloner/li/root@47.104.109.83's password:输 阅读全文
posted @ 2018-07-22 16:02 绮梦璇玑 阅读(701) 评论(0) 推荐(0) 编辑
摘要: from pandas import Series,DataFrameimport pandas as pdimport matplotlib.pyplot as pltimport numpy as npfig=plt.figure()ax=fig.add_subplot(1,1,1)data=n 阅读全文
posted @ 2018-07-19 16:26 绮梦璇玑 阅读(713) 评论(0) 推荐(0) 编辑
摘要: 1.setTimeout 语法:setTimeout(“function()”,interval); 2.clearTimeout 语法:clearTimeout(variable) 示例 阅读全文
posted @ 2017-07-28 20:58 绮梦璇玑 阅读(108) 评论(0) 推荐(0) 编辑
摘要: 检测浏览器是否支持某种类型的输入控件 检查浏览器是否支持某种控件属性 阅读全文
posted @ 2017-06-13 17:40 绮梦璇玑 阅读(141) 评论(0) 推荐(0) 编辑
摘要: function converttoGS(img) { img.color = img.src; img.grayscale = createGSCanvas(img); img.onmouseover = function () { this.src = this.color; } img.onm 阅读全文
posted @ 2017-06-13 12:54 绮梦璇玑 阅读(343) 评论(0) 推荐(0) 编辑
摘要: 要想创建新的浏览器窗口,可使用伪元素JavaScript:,如下所示 调用只在支持伪元素的浏览器中有效,因此不推荐 替代性方案如下 但是如果用户禁用了JavaScript,这种做法也毫无用处 平稳退化 这样即使禁用了js,依然能实现相应的功能 阅读全文
posted @ 2017-06-10 15:06 绮梦璇玑 阅读(189) 评论(0) 推荐(0) 编辑