捕获异常 1.读写文件的时候有很多容易出错的地方;如果你要打开的文件不存在,就会得到一个IOerror: >>> find = open('bad_file.txt') Traceback (most recent call last): File "<stdin>", line 1, in <mo ...
分类:
编程语言 时间:
2020-07-01 20:20:46
阅读次数:
82
1 <build> 2 <resources> 3 <resource> 4 <directory>src/main/java</directory> 5 <includes> 6 <include>**/*.properties</include> 7 <include>**/*.xml</inc ...
分类:
编程语言 时间:
2020-07-01 20:10:39
阅读次数:
240
单条件查询: db.getCollection('task').find({"id": "dc717654-dc45-4bf9-8e8a-1f1b146d6524"}) 单条件查询(属性为叶子节点) db.getCollection('archive_result').find({"results. ...
分类:
数据库 时间:
2020-07-01 16:06:36
阅读次数:
84
HTML元素定位的方法: 1、id find_element_by_id 2、name find_element_by_name 3、class find_element_by_class_name 4、tag find_element_by_tag_name 5、link find_element ...
分类:
其他好文 时间:
2020-07-01 15:45:25
阅读次数:
67
今天学习了一下Hive的自定义函数,于是乎想练习一下在本地编写一个自定义的函数,然后打包上传到集群,再进行执行的过程。但是中间遇到了一些小挫折,就是当我打包的时候,除了导入正常所需要的org.apache.hive包之外,并没导入其他的包。但是开始打包以后,报错了,报错信息如下: Could not ...
分类:
编程语言 时间:
2020-07-01 11:03:18
阅读次数:
199
需要找到某天(例如2020-07-1)以及这之后生成的空文件。那么这个要怎么处理呢?这个当然是用find命令来解决。如下所示, -mtime -5表示查找距现在5*24H内修改过的文件 -type f表示查找文件 -type f -empty表示空文件 由于需要以显示修改时间等文件信息,所以使用-e ...
分类:
其他好文 时间:
2020-07-01 09:52:01
阅读次数:
62
何为set set是STL中的一种关联容器,里面的元素根据关键字存储。set的元素都是唯一的,没有重复元素,我们可以利用这个特点进行去重的操作; set中常用的方法 函数名 作用 clear 清除内容 insert 插入元素或节点 emplace 原位构造元素 erase 移除元素 swap 交换内 ...
分类:
编程语言 时间:
2020-06-30 20:34:41
阅读次数:
160
git config --list List all the settings git can find at /etc/gitconfig, ~/.gitconfig, ~/.config/git/config or .git/config. git config --system --list ...
分类:
其他好文 时间:
2020-06-30 16:03:38
阅读次数:
57
例子:国际化语言切换xp = '//*[@id="app"]/div/div[1]/div/div/div[1]/div[2]/div/div/div[2]/span' #先点击下拉按钮语言框 element2 = self.driver.find_element_by_xpath(xp) #定位语 ...
分类:
其他好文 时间:
2020-06-30 14:33:49
阅读次数:
57
Sub 提取红色正确答案选项() Selection.HomeKey wdStory Selection.Find.ClearFormatting Selection.Find.Font.Color = wdColorRed Selection.Find.Replacement.ClearForma ...
分类:
编程语言 时间:
2020-06-30 12:48:07
阅读次数:
132