Python没有自带openyxl,需要安装: pip install openyxl 打开excel文档: openyxl.load_workbook(excel地址) - 打开现有excel文件 openyxl.Workbook() - 新建一个excel文件 返回一个工作博对象 import ...
分类:
编程语言 时间:
2020-08-01 15:49:11
阅读次数:
108
create or replace function fn_assetode(i_type_code in varchar2, i_src_COLM IN varchar2, i_date in varchar2, i_src_cd in varchar2) return varchar2 as / ...
分类:
数据库 时间:
2020-07-31 14:13:25
阅读次数:
102
[CF16E]Fish 一.前言 ? 一开始位运算没有打括号导致优先级混乱还真是对不起了。题目链接 二.思路 ? 提前声明,为了保证位运算起来方便,鱼的编号从0开始,并且状态的标志为最后一位是编号为0的鱼。 ? 这题的转移可以说是十分好想了,对于一个状态(表示还有多少鱼存活),我们从里面抽一个鱼出来 ...
分类:
其他好文 时间:
2020-07-30 22:14:38
阅读次数:
70
数据库硬件优化(选型) 一般数据库选择 1.真实的硬件,物理机 2.云产品ECS,自己搭建数据库 3.云数据库(RDS、DRDS) 数据库类型 1.OLTP 在线事务处理系统 支持大量并发用户定期添加和修改数据。 反映随时变化的单位状态,但不保存其历史记录。 包含大量数据,其中包括用于验证事务的大量 ...
分类:
数据库 时间:
2020-07-30 22:08:21
阅读次数:
77
verilog之预编译 1、基本作用 预编译,就是在verilog进入编译器前的准备工作。一般是完成一些文件的调用,一些编译器的设置,一些参数的定义。一般使用include,define,timescale就可以实现。比较灵活的使用是ifdef和endif的插入,可以将预编译的功能拓展。 2、使用事 ...
分类:
其他好文 时间:
2020-07-30 22:02:06
阅读次数:
68
AcWing 240. 食物链 #include <bits/stdc++.h> using namespace std; const int N=1e6+10; int n,m; int p[N],d[N]; //find函数返回的是根节点 int find(int x){ if(p[x]!=x) ...
Ugly numbers are numbers whose only prime factors are 2, 3 or 5. The sequence 1, 2, 3, 4, 5, 6, 8, 9, 10, 12, 15, ... shows the first 11 ugly numbers. ...
分类:
其他好文 时间:
2020-07-30 01:31:19
阅读次数:
73
# 命名元组 from collections import namedtuple subscriber = namedtuple(typename='Subscriber', field_names=['name', 'age']) sub = subscriber('lisi', 10) pri ...
分类:
其他好文 时间:
2020-07-29 15:09:12
阅读次数:
62
AcWing 830. 单调栈 #include <bits/stdc++.h> using namespace std; const int N=1e6+10; int n; int stk[N],tt; int main(){ cin.tie(0); ios::sync_with_stdio(f ...
power_two.cpp内容如下: #include <iostream> using namespace std; bool is_power_of_two(unsigned int n) { return (n && !(n & (n-1))); } int main(int argc, ch ...
分类:
其他好文 时间:
2020-07-29 15:07:26
阅读次数:
62