1、行转列一般通过case when语句来实现。 2、列转行,主要是通过UNION ALL,MAX来实现 ...
分类:
数据库 时间:
2019-05-18 20:27:45
阅读次数:
153
import numpy as np import matplotlib.pyplot as plt from sklearn import datasets,ensemble from sklearn.model_selection import train_test_split def load... ...
分类:
编程语言 时间:
2019-05-02 09:41:29
阅读次数:
237
set spark.executor.instances=20; set spark.executor.cores=5; set spark.executor.memory=5G; ...
分类:
其他好文 时间:
2019-04-27 00:46:46
阅读次数:
172
FIT9131 Semester 1 2019 Assignment 122 March 2019 1Nature Trail GameIntroductionAssignment 1 has two components: a programming task and a unit test. T ...
分类:
其他好文 时间:
2019-04-19 19:33:03
阅读次数:
92
redis是一个开源的, 内存数据结构存储, 一般用来作为数据库,缓存和消息代理. Redis的优势 多种数据结构 1. 字符类型String 2. 散列类型Hash 3. 列表类型List 4. 集合类型Set 5. 有序集合类型SortedSet 功能丰富 1. 超时时间设置 2. 可以通过列表 ...
分类:
其他好文 时间:
2019-04-14 14:08:18
阅读次数:
106
如果cpu cores数量和siblings数量一致,则没有启用超线程,否则超线程被启用,上图为2线程。 ...
分类:
系统相关 时间:
2019-04-08 15:58:46
阅读次数:
174
将做工程过程中常用的内容做个收藏,如下的内容是关于python列表操作:追加元素到列表的内容。scores=["1","2","3"]#addascorescore=int(raw_input("Whatscoredidyouget?:"))scores.append(score)#listhigh-scoretableforscoreinscores:printscore
分类:
编程语言 时间:
2019-04-08 15:30:55
阅读次数:
150
// 学校演讲比赛.cpp : 此文件包含 "main" 函数。程序执行将在此处开始并结束。 // #include "pch.h" #include #include "string" #include "vector" #include "algorithm" #include "functio... ...
分类:
其他好文 时间:
2019-03-30 18:36:45
阅读次数:
183
使用CentOS7.x使用习惯了后用top命令,然后按1就可以查看相关的cpu核心数等相关信息 相关概念: 物理CPU:实际Server中插槽上的CPU个数。 物理cpu数量:可以数不重复的 physical id 有几个。 逻辑CPU: Linux用户对 /proc/cpuinfo 这个文件肯定不 ...
分类:
其他好文 时间:
2019-03-18 11:57:39
阅读次数:
246
Thread is for execution Kernel level thread, physical parallelism Cores Divide work amount of physical cores / CPU Load balancing Data Splitting Which ...
分类:
其他好文 时间:
2019-03-10 09:54:23
阅读次数:
186