摘要:
import numpy as np date = ['20210912', '20210922', '20211009', '20211102'] new_date = [] for i in range(100): new_date.extend(date) new_data = [] for 阅读全文
摘要:
import sys for line in sys.stdin: line = line.strip('\n\r').split('\t') print("{0}\t{1}\1{2}\1{3}\1{4}\t{5}".format(line[0], line[2], line[3], line[4] 阅读全文
摘要:
1 语法 https://www.runoob.com/linux/linux-comm-sed.html Linux sed 命令是利用脚本来处理文本文件。 sed 可依照脚本的指令来处理、编辑文本文件。 Sed 主要用来自动编辑一个或多个文件、简化对文件的反复操作、编写转换程序等。 1. 1 语 阅读全文
摘要:
# coding=utf-8 """PyTorch RoBERTa model. """ import math import warnings import fitlog import torch import torch.nn as nn import torch.nn.functional a 阅读全文
摘要:
# In[1] import os from docx import Document dir_lists = os.listdir() for dir in dir_lists: if os.path.isdir(dir): # print(dir) words_lst = os.listdir( 阅读全文
摘要:
from PyPDF2 import PdfFileReader, PdfFileWriter def split(path, name_of_split): pdf = PdfFileReader(path) pdf_writer = PdfFileWriter() for page in ran 阅读全文
摘要:
#include <iostream> #include <vector> #include <algorithm> using namespace std; int selectPartition(vector<int>& arr, int low, int high) { int mid = l 阅读全文