文件的基本操作 操作系统默认编码 windows:gbk linux:utf-8 Mac-OS:utf-8 打开文件 f1 = open('read.txt', encoding='utf-8',mode='r') f1变量称为文件操作句柄,通常以f1、file_handler、f_h等约定俗成形式 ...
分类:
编程语言 时间:
2020-07-17 19:46:14
阅读次数:
73
谐波的具体生成方法参看论文 Harmonic and Intermodulation Analysis of Nonlinear Devices Used in Virtual Bass Systems 具体的matlab代码为 function Ha = calculate_harmonics() ...
分类:
其他好文 时间:
2020-07-17 16:24:35
阅读次数:
80
一、Reading Jack seldom gets together with his friends. He usually stays at home with his pet dog, Lucky. They sometimes go for long walks in the park. ...
分类:
其他好文 时间:
2020-07-17 14:08:23
阅读次数:
76
scp是secure copy的简写,用于在Linux下进行远程拷贝文件的命令,和它类似的命令有cp,不过cp只是在本机进行拷贝不能跨服务器,而且scp传输是加密的。可能会稍微影响一下速度。当你服务器硬盘变为只读 read only system时,用scp可以帮你把文件移出来。另外,scp还非常不 ...
分类:
其他好文 时间:
2020-07-17 11:22:24
阅读次数:
99
缺失值处理 1.当缺失值的比例占数据样本的比例比较小,则可以直接删除。 2.数据补齐 查看缺失值 df = pd.read_excel(r'缺失值处理.xlsx') df 每列缺失值的总数 df.isnull().sum() 列缺失值所占的比例 #apply df.apply(lambda x: s ...
分类:
其他好文 时间:
2020-07-16 21:46:44
阅读次数:
117
LuoguP4279 [SHOI2008]小约翰的游戏 题目描述 链接 Solution Anti-SG的模板题 这里就直接放代码 #include<bits/stdc++.h> using namespace std; inline long long read() { long long f = ...
分类:
其他好文 时间:
2020-07-16 21:44:29
阅读次数:
72
import numpy as npimport pandas as pdimport matplotlib.pyplot as pltfrom scipy import statsimport mathdf=pd.read_csv("hfda_ch10_employees.csv")#print( ...
分类:
编程语言 时间:
2020-07-16 21:41:06
阅读次数:
87
1 ealsticsearch常用术语 Index 索引 类比mysql中的表 6.0之后 Document 文档数据 类比mysql 表中的一行数据 Field字段 类比mysql表字段 Query DSL 查询语法 2 elasticsearch crud create 创建文档 read 读取 ...
分类:
其他好文 时间:
2020-07-16 21:38:56
阅读次数:
78
1. adb root 2. adb disable-verity (最新的adb 工具包才支持adb disable-verity命令,如果是Linux开发环境,则可使用工程编译结果目录out/host/linux-x86/bin下的adb执行文件) 3. adb reboot 重启设备 4. a ...
分类:
数据库 时间:
2020-07-16 21:25:33
阅读次数:
89
一、获取header方法 getheader.py # _*_ coding:utf-8 _*_ import json,requests from Common import readConfig def get_token(): "获取登录token" login=readConfig.Read ...
分类:
编程语言 时间:
2020-07-16 21:08:02
阅读次数:
78