需求:根据country列的不同值,将内容分到不同sheet 方法一: 读取原Excel,根据country列将不同的内容放到不同的sheet,并根据国家名称命名,将结果放到新的输出文件中。 #!/usr/bin/env python3 #读取Excel文件 import pandas as pd ...
分类:
编程语言 时间:
2020-05-18 21:00:21
阅读次数:
178
使用springBoot和VUE时,后台能获取到数据,前台报spread.js:25Uncaught(inpromise)Error:Requestfailedwithstatuscode404错误。网上有很多相关的方法,结果发现我的是问题是在controller里没有加@ResponseBody(或者@RestController也可以,加@RestController就不需要@Response
分类:
Web程序 时间:
2020-05-18 09:27:14
阅读次数:
320
HTML&CSS CSS引入和选择器 CSS,即“Cascading Style Sheet”(层叠样式表),是用来控制网页外观的一门技术。 CSS有三种使用方式: 行内样式 内部样式 外部样式 1、行内样式:直接在所使用的标签中加入style属性。 2、内部样式:写在 格式 html Docume ...
分类:
Web程序 时间:
2020-05-16 23:36:15
阅读次数:
199
"""处理请求"""import reimport jsonimport requestsfrom jsonpath_rw import parsefrom urllib.parse import urlparsefrom conf import settingsfrom utils.LogHand ...
分类:
其他好文 时间:
2020-05-14 15:43:32
阅读次数:
52
"""处理Excel"""import xlrdfrom conf import settingsfrom utils.LogHandler import loggerclass ExcelOperate(object): def __init__(self, file_path, sheet_by ...
分类:
其他好文 时间:
2020-05-14 15:21:46
阅读次数:
77
使用Vue.JS+ElementUI布局展示列表,axios请求数据,前端分页 ...
分类:
其他好文 时间:
2020-05-14 11:03:56
阅读次数:
87
1、冻结首行 https://blog.csdn.net/qq_24076135/article/details/77449898 sheet.createFreezePane(0,1,0,1); 2、设置单元格背景色 原理:设置一个模板 然后要设置背景色的单元格来调用模板即可 模板代码 // 设置 ...
分类:
编程语言 时间:
2020-05-14 00:55:16
阅读次数:
113
将一个列表数据写入output.xlsx的a,b,c……等sheet中 import pandas as pd df1 = pd.DataFrame({'a':[3,1],'b':[4,3]}) df2 = df1.copy() with pd.ExcelWriter('F:\\python入门\\ ...
分类:
编程语言 时间:
2020-05-13 23:31:30
阅读次数:
141
import openpyxl wb=openpyxl.load_workbook(r'e:\\玩家表.xlsx') sheet=wb['Worksheet'] row_max=sheet.max_row hw_ls=[] for i in range(2,row_max+1): hw_ls.app ...
分类:
其他好文 时间:
2020-05-13 10:22:28
阅读次数:
78
前言 关于web页面上的选项,通常我们需要断言选项的个数,遍历每个选项的内容. .each() .its() 判断选项里面元素个数 .invoke() 隐藏元素判断 定位隐藏元素,对异常隐藏的判断 .spread() 遍历 arr 依次断言 .then() To invoke a callback ...
分类:
其他好文 时间:
2020-05-12 13:56:36
阅读次数:
65