def write_report(url, excel_name, sheet_name): import re import ast import pandas as pd import openpyxl from copy import deepcopy resp = requests.get( ...
分类:
编程语言 时间:
2020-05-20 20:27:12
阅读次数:
438
python的OS模块 path属性os模块——from os import path 常用方法 from os import path p = path join('m','n') p1 = path.join('e:/a/b','c') print(type(p),p) print(type(p ...
分类:
其他好文 时间:
2020-05-20 20:25:21
阅读次数:
75
文件常用IO操作——open # r模式 f = open("test","r") #只读 f.read() f.write("abc") f.close() # w模式 f = open("test","w") #只写打开 f.write("abc") f.close() r模式 只读打开文件,若 ...
分类:
编程语言 时间:
2020-05-20 20:24:19
阅读次数:
72
一、名词解释 报价(Quotation):就是货币的价格。 外汇市场中有两种报价形式, 直接报价和间接报价。 直接报价(Direct Quotation):又称应付标价(Giving Quotaiton),是指一国以整数单位的外国货币为标准,折算为若干单位的本币的标价法,如:USD/CNY=6.87 ...
分类:
其他好文 时间:
2020-05-20 20:22:42
阅读次数:
95
全站跳转404页面的示例 # 20200520 全站跳转404页面 if ($request_uri !~* "/404.html") { rewrite ^/(.*)$ /404.html permanent; } 404页面源码:404.html <!DOCTYPE html> <html> < ...
分类:
其他好文 时间:
2020-05-20 20:17:24
阅读次数:
83
The df and du commands provide different system information and I can not write to a partition that df says is 100% full. Which is correct and why doe ...
分类:
其他好文 时间:
2020-05-20 20:06:11
阅读次数:
77
生成效果如下的 九九乘法表 import os, openpyxl from openpyxl.styles import Font #path = 'D:\\pyspace' #os.chdir(path) wb = openpyxl.Workbook() sheet = wb.active #从 ...
分类:
编程语言 时间:
2020-05-20 18:58:13
阅读次数:
73
mac 10.15.3 配置jdk与maven环境变量 mac system 配置文件加载顺序 /etc/profile /etc/paths ~/.bash_profile ~/.bash_login ~/.profile ~/.bashrc sudo vim /etc/profile JAVA_ ...
分类:
其他好文 时间:
2020-05-20 18:56:23
阅读次数:
56
(点击图片进入关卡) 选择一个元素的近邻来控制近邻! 简介 siblings() 函数的作用返回一列近邻元素 默认代码 <!-- 要选择邻近元素,使用 "siblings()" --> <!-- 使用此功能可以忽略目标旁边的元素。 --> <!-- 元素在相似的情况下等同近邻元素。 --> <scr ...
分类:
Web程序 时间:
2020-05-20 18:52:54
阅读次数:
84
真正的零拷贝有两种方式: mmap+write Sendfile mmap 是一种内存映射文件的方法,即将一个文件或者其他对象映射到进程的地址空间,实现文件磁盘地址和进程虚拟地址空间中一段虚拟地址的一一对应关系。 这样就可以省掉原来内核 Read 缓冲区 Copy 数据到用户缓冲区,但是还是需要内核 ...
分类:
其他好文 时间:
2020-05-20 18:34:29
阅读次数:
72