import os # os.mkdir("n1") # 创建目录 # 创建文件 # with open('1.txt',mode='w') as file: # file.write('11111') # os.mknod("n1.txt") # 创建文件,windows上面不支持,linux中支 ...
分类:
编程语言 时间:
2021-05-04 15:43:42
阅读次数:
0
Differentiation is Survival and the Universe Wants You to be Typical This is my last annual shareholder letter as the CEO of Amazon, and I have one la ...
分类:
其他好文 时间:
2021-05-04 15:42:13
阅读次数:
0
问题描述 下面是有关这个问题的描述部分。 英文 Given a string s, return the first non-repeating character in it and return its index. If it does not exist, return -1. 中文 针对给 ...
分类:
其他好文 时间:
2021-04-28 12:10:00
阅读次数:
0
1、测试1 [root@centos7 test2]# ls a.txt [root@centos7 test2]# if [ -e a.txt ]; then echo "exist";else echo "no nxist"; fi exist [root@centos7 test2]# if ...
分类:
系统相关 时间:
2021-04-23 11:53:02
阅读次数:
0
关于整型切片的初始化,下面正确的是: s := make([]int) s := make([]int, 0) s := make([]int, 5, 10) s := []int{1, 2, 3, 4, 5} [答案]: BCD [解析&更多]: 再在使用make初始化切片的时候,除了类型,长度也 ...
分类:
其他好文 时间:
2021-04-19 15:15:15
阅读次数:
0
##一、问题一 #1.问题: 重建表过程中,各节点在clickhouse上table已物理删除,因zk里仍存在该表的meta信息,导致再次创建该表create table xxx on cluster, 该节点无法创建表(其他节点创建表成功),报错:Replica /clickhouse/table ...
分类:
其他好文 时间:
2021-04-16 11:41:36
阅读次数:
0
解决Navicat连接MySQL出现1251-Client does not support authentication protocol requested by server; 。 一:出现的一个错 在安装完MySQL的时候,我们现在一般都使用Navicat来连接数据库,可惜出现下面的错误:1 ...
分类:
数据库 时间:
2021-04-13 12:42:55
阅读次数:
0
#函数的凸性 1.设$f$是一个下凸函数,且满足$\lim_\limits{x \to-\infty} f(x) = -\infty$ 证明必有 \(\lim_\limits{x \to+\infty} f(x) = +\infty\) ###证明:假设 \(\exists M > 0,\foral ...
分类:
其他好文 时间:
2021-04-12 12:50:47
阅读次数:
0
一、创建表 创建模型 创建名为book的app,在book下的models.py中创建模型: from django.db import models # Create your models here. class Book(models.Model): id=models.AutoField(p ...
分类:
数据库 时间:
2021-04-10 13:08:36
阅读次数:
0
如果我们往一个非空的目录下 clone git 项目,就会提示错误信息: fatal: destination path '.' already exists and is not an empty directory. 解决的办法是: 1. 进入非空目录,假设是 /workdir/proj1 2. ...
分类:
其他好文 时间:
2021-04-05 12:21:02
阅读次数:
0