建表 1 CREATE [TEMPORARY] [EXTERNAL] TABLE [IF NOT EXISTS] [db_name.]table_name -- (Note: TEMPORARY available in Hive 0.14.0 and later) 2 [(col_name dat ...
分类:
其他好文 时间:
2020-02-26 18:43:12
阅读次数:
80
import os def local_rm(dirpath): if os.path.exists(dirpath): files = os.listdir(dirpath) for file in files: filepath = os.path.join(dirpath, file).rep ...
分类:
编程语言 时间:
2020-02-26 17:02:13
阅读次数:
82
1.思路通过pyautogui可以实现鼠标点击、滚动鼠标、截屏等操作。由此功能实现打开页面,进行点赞。aircv可以从大图像获得小图像的位置,利用pyautogui截屏得到的图片,可以在页面获取到每一个👍的位置,进行点击。当前页面点击完之后,通过pyautogui滚动鼠标的功能继续向下翻。从而实现 ...
分类:
编程语言 时间:
2020-02-26 15:33:53
阅读次数:
186
快速排序其实是使用分治法的思想,即在原数组中找一个数p,然后将原数组中比数p大的数放到此数的右边,比数p小的数放到次数的左边。 口诀:1.找中轴 2.左边快排 3.右边快排 主体代码如下: void quick_sort(int * data,int left,int right){ if(left ...
分类:
编程语言 时间:
2020-02-26 01:29:39
阅读次数:
89
标准查询运算符: 标准查询运算符是一组方法,提供包括筛选where、投影select、聚合(例如max)、排序order by等在内的查询功能。 string sentence = "the quick brown fox jumps over the lazy dog"; string[] wor ...
分类:
其他好文 时间:
2020-02-26 01:18:36
阅读次数:
73
快速排序很简单,分为三步: 1.找中轴 2.左边快排 3.右边快排 注意事项:每一次快排之前都要判断左边的下标是否小于右边的下标 代码如下: void quick_sort(int * data,int left,int right) { if(left < right) { int index = ...
分类:
编程语言 时间:
2020-02-25 23:06:30
阅读次数:
184
SQL脚本 /*************1:删除临时表*************/ if exists(select * from tempdb..sysobjects where id=object_id('tempdb..#tempTable')) drop table #tempTable; ...
分类:
数据库 时间:
2020-02-25 13:17:29
阅读次数:
118
1.首先打开Git Bash设置名字和邮箱: git config --global user.name "你的名字" git config --global user.email“你的邮箱" 2.删除.SSH文件下的known_hosts(.SSH在C:\Users\Windows用户名目录下) ...
分类:
数据库 时间:
2020-02-25 12:52:13
阅读次数:
103
石子合并不应该是个区间dp? 题目:There is an old stone game.At the beginning of the game the player picks n(1<=n<=50000) piles of stones in a line. The goal is to me ...
分类:
其他好文 时间:
2020-02-24 22:40:11
阅读次数:
82
quick_sort = lambda array: array if len(array) <= 1 else quick_sort([item for item in array[1:] if item <= array[0]]) + [array[0]] + quick_sort([item ...
分类:
编程语言 时间:
2020-02-24 13:16:00
阅读次数:
85