工具类 package io.renren.utils; import java.io.File; import java.io.FileInputStream; import java.io.InputStream; import java.text.DecimalFormat; import j ...
分类:
其他好文 时间:
2021-06-29 16:02:10
阅读次数:
0
二分 求一个序列的最长上升子序列个数。 本程序采用边读边处理 + 二分法。 ll f[maxn], ans = 1; //注意答案个数初始化为1 int main() { ll n = read(); for (int i = 1; i <= n; ++i) { int x = read(); if ...
分类:
其他好文 时间:
2021-06-29 15:59:12
阅读次数:
0
微信小程序报错:Cannot read property ‘forceUpdate‘ of undefined ...
分类:
微信 时间:
2021-06-29 15:38:13
阅读次数:
0
1.打开Pycharm->VCS->Enable Version Control Integration->Git->remote->输入SSH 2.Define Remotes 3.复制SSH 到GIt Open Git bash 4.复制最后黄色的到git ,添加ssh key 5.复制SSH ...
分类:
其他好文 时间:
2021-06-29 15:28:35
阅读次数:
0
configparser模块:读取配置文件的包,配置文件由章节(section[sectionName])、键、值组成。(key=value or key: value),其中key=value通过被称为option 1、新建一个config.ini文件 1 [wework] 2 corp_id = ...
分类:
编程语言 时间:
2021-06-29 15:27:04
阅读次数:
0
学习记录--持续更新 import os # 读取项目的绝对路径 BASE_PATH = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) # 读取当前文件的绝对路径 base_path = os.path.abspath(__f ...
分类:
编程语言 时间:
2021-06-29 15:26:36
阅读次数:
0
#1、安装ElasticSearch ###拉取镜像 docker pull docker.elastic.co/elasticsearch/elasticsearch:7.1.1 ###创建资料卷 docker volume create es-data docker volume create ...
分类:
其他好文 时间:
2021-06-28 21:17:34
阅读次数:
0
有人说要先安装Cython,但是我安装了Cython之后还是报这个错误,然后就换了一种安装思路 先去清华源镜像站https://opentuna.cn/pypi/web/simple/pycocotools/下载pycocotools-2.0.2.tar.gz 然后cd到pycocotools-2. ...
Warning: World-writable config file '/etc/mysql/my.cnf' is ignoredERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mys ...
分类:
数据库 时间:
2021-06-28 20:57:43
阅读次数:
0
经常使用命令行进行一些操作,一些常用的命令一遍遍的敲比较浪费时间,想通过别名的方式简化操作。 1、就是编辑~/.bash_profile,比如添加PS:=两边没有空格: alias st="git status" alias pull='git pull' alias push='git push' ...
分类:
系统相关 时间:
2021-06-28 20:41:29
阅读次数:
0