把当前文件夹里面多个类似的excel合并到一起,以"学号"的列进行排序,生成result.xlsx 用法为:把所有excel表与excel_concat.py放到一个文件夹,安装好python3与pandas之后,在命令行下使用cd命令到该文件夹,输入 python3 excel_concat.py
配置选项:
- SHEETNAME: 指定excel表的sheet name,如果不指定则选取全部sheets
- SKIPROWS: 跳过读取excel表的行数,用于跳过表的标题之类信息
import os | |
import re | |
import zipfile | |
from collections import defaultdict | |
import bs4 | |
def check_path(path, exist=True): | |
abspath = os.path.abspath(os.path.expanduser(path)) |
#Insert this at the end of /etc.defaults/ddns_provider.conf | |
[Namecheap] | |
modulepath=/usr/syno/bin/ddns/namecheap.php | |
queryurl=https://dynamicdns.park-your-domain.com/update |
#!/usr/bin/env python2 | |
from __future__ import print_function | |
import os | |
import pypub | |
import sys | |
if len(sys.argv) < 2: | |
print('usage: python', __file__, 'file') | |
exit() | |
# split txt |
# -*- coding: utf-8 -*- | |
""" | |
@author: goraj | |
""" | |
import lightgbm as lgbm | |
from sklearn.datasets import load_digits | |
import numpy as np | |
from sklearn.model_selection import train_test_split | |
from sklearn.metrics import roc_auc_score |
#!/usr/bin/env python3 | |
""" | |
usage: dpt-notes-sync.py ip_address | |
""" | |
import datetime | |
import json | |
import os | |
from dateutil import parser as dateparser |
#!/bin/bash | |
if [[ -z $TMUX ]]; then | |
echo 'must run in tmux' | |
apt update;apt install -y tmux | |
exit | |
fi | |
# Updating sources | |
read -p 'Updating packages(press Enter):' | |
wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add - | |
echo "deb https://artifacts.elastic.co/packages/6.x/apt stable main" | sudo tee -a /etc/apt/sources.list.d/elastic-6.x.list |
# initialization file (not found) |
#!/bin/sh | |
set -eu | |
FETCH="curl -sL" | |
# or for curl: | |
# FETCH="fetch -qo -" | |
# $1: Your domain | |
# $2: Subdomain A record to update. Use @ for TLD. | |
# $3: The password given to you by Namecheap's web interface | |
# | |
# Rerun this script every 5 minutes. Crontab entry: |
把当前文件夹里面多个类似的excel合并到一起,以"学号"的列进行排序,生成result.xlsx 用法为:把所有excel表与excel_concat.py放到一个文件夹,安装好python3与pandas之后,在命令行下使用cd命令到该文件夹,输入 python3 excel_concat.py
配置选项: