置換したい列を headers から探して,headers の行番号(元データの列番号-1)を入力する. replacelist には配列を入れて,[0] に挿入先,[1] に追加データの位置を指定する.
前から順に実行するので,ある行番号で表されるものを追加データとして指定した後に挿入先として指定すると不具合が発生してしまう.
ex: 1, 3, 5 をひとつにまとめるとき, NG: [[1, 3], [3, 5]] OK: [[1, 3], [1, 5]]
# This file has been auto-generated by i3-config-wizard(1). | |
# It will not be overwritten, so edit it as you like. | |
# | |
# Should you change your keyboard layout some time, delete | |
# this file and re-run i3-config-wizard(1). | |
# | |
# i3 config file (v4) | |
# | |
# Please see https://i3wm.org/docs/userguide.html for a complete reference! |
dbus-send --print-reply=literal --session --dest=org.fcitx.Fcitx5 /controller org.fcitx.Fcitx.Controller1.CurrentInputMethod |
NAME = reversi | |
TARGET = $(NAME).exe | |
SRCS = cpu.c hashmap.c mapio.c mapmanager.c tools.c $(NAME).c | |
OBJS = $(SRCS:.c=.o) | |
CC = gcc | |
CFLAGS = -Wall -O3 -march=native | |
RM = del /F /Q | |
all: $(TARGET) |
#!/usr/bin/python3 | |
import board | |
from adafruit_bme280 import basic as bme280 | |
import requests | |
def get_defaultpressure(): | |
return 1013.25 | |
url = 'https://api.openweathermap.org/data/2.5/weather' | |
payload = {'lat': '37.432713', |
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
import subprocess | |
from xkeysnail.transform import * | |
# something remap | |
def is_enable_ime(_): | |
command = "sudo -u ${USER} DBUS_SESSION_BUS_ADDRESS='unix:path=/run/user/${UID}/bus' dbus-send --print-reply=literal --session --dest=org.fcitx.Fcitx5 /controller org.fcitx.Fcitx.Controller1.CurrentInputMethod" |
/Program Files (x86)/ASUS/GPU\ TweakII/Win7/IOMap64.sys | |
/Program Files (x86)/ASUS/GPU\ TweakII/IOMap64.sys | |
/Windows/System32/drivers/IOMap64.sys |
#include <stdio.h> | |
#include <stdlib.h> | |
int main(void) { | |
int min, max, temp; | |
char buf[255], err=0; | |
printf("最低温度: "); | |
if (fgets(buf, sizeof(buf), stdin) != NULL) { | |
min = atoi(buf); |
#include <stdio.h> | |
#include <stdbool.h> | |
#define STATEMENT_LENGTH 127 | |
#define CHOICES_ELEMENTS 4 | |
#define CHOICES_LENGTH 63 | |
#define MAX_POSSIBILITY_ANSWER 10 | |
#define MIN(a, b) ((a) > (b) ? b : a) | |