jdk的安装 上传jdk的安装包到linux中 解压、更名 [root@qianfeng01 software]# tar -zxvf jdk-8u221-linux-x64.tar.gz -C /usr/local/ [root@qianfeng01 software]# cd /usr/loca ...
分类:
其他好文 时间:
2020-07-19 17:54:49
阅读次数:
72
//ini_set('error_reporting', 0); ini_set('error_reporting',E_ALL);//设置报告错误级别 $debug = false; if($debug){ //为true时,将错误显示在浏览器 ini_set("display_errors"," ...
分类:
Web程序 时间:
2020-07-19 17:43:48
阅读次数:
95
1.get: book = BookInfo.objects.get(id=100) #查数据库模型BookInfo中id为100的数据 2.all: book = BookInfo.objects.all() #查数据库模型BookInfo中所有数据 3.count: book = BookInf ...
分类:
其他好文 时间:
2020-07-19 11:54:47
阅读次数:
104
Given a singly linked list, you are supposed to rearrange its elements so that all the negative values appear before all of the non-negatives, and all ...
分类:
其他好文 时间:
2020-07-19 00:50:18
阅读次数:
85
在对数据进行汇总和分析的时候,经常需要用到排名相关的操作,下面是hive中经常用到的3个排名函数: rank() dense_rank() row_number() 函数说明: rank():在一组数据内按顺序显示排名顺序,值相同的情况下,排序数会重复,下个排序数会根据记录数接着排名。 dense_ ...
分类:
其他好文 时间:
2020-07-19 00:49:43
阅读次数:
74
Given a non-negative integer N, your task is to compute the sum of all the digits of N, and output every digit of the sum in English. Input Specificat ...
分类:
其他好文 时间:
2020-07-18 21:49:07
阅读次数:
59
0.编写一个程序,统计当前目录下每个文件类型的文件数,程序实现如图: 代码实现: 1 import os 2 # 使用os.curdir表示当前目录更标准 3 all_files = os.listdir(os.curdir) 4 type_dict = dict() 5 6 for each_fi ...
分类:
编程语言 时间:
2020-07-18 19:45:56
阅读次数:
90
Remove the minimum number of invalid parentheses in order to make the input string valid. Return all possible results. Note: The input string may cont ...
分类:
其他好文 时间:
2020-07-18 15:29:10
阅读次数:
71
pycharm选择python版本 1. 打开项目设置(pycharm–>preference) 2. 在打开的页面中,选择project选项,project后面的名字就是打开的当前项目名,如下图所示 3.选择 Project interpreter,如果下拉列表中没有需要的版本,可以通过show ...
分类:
编程语言 时间:
2020-07-18 13:34:12
阅读次数:
69
首先去mysql官网下载mysql的离线rpm安装包(https://downloads.mysql.com/archives/community/) 上传到/data/rpm/mysql8.0目录下 因为Mysql依赖于mariadb,所以我们先用rpm -qa | grep mariadb 查找 ...
分类:
数据库 时间:
2020-07-18 13:32:54
阅读次数:
118