检查文件是否存在、可读等等 File file = new File("out.txt") println file.exists() println file.canRead() 向文件写入文本 File file = new File("out.txt") file.write "First l ...
分类:
其他好文 时间:
2021-02-24 13:10:56
阅读次数:
0
1.检查Vue CLI安装 (详情可查看:官方地址https://cli.vuejs.org/) 查看版本 $ vue -V 2.创建一个项目 vue create hello-world 选择Default ([Vue 2] babel, eslint),因为element现阶段还不支持Vue3 ...
分类:
其他好文 时间:
2021-02-24 13:02:52
阅读次数:
0
using System; namespace leecode1 { class Program { static void Main(string[] args) { string outString= string.Empty; string s1 = "abc"; string s2 = "p ...
分类:
其他好文 时间:
2021-02-24 12:48:10
阅读次数:
0
简介 实现List接口 允许任何元素,包括null 大致和Vector相当,除了ArrayList不是线程安全的 size()、isEmpty()、get()、set()、iterator()、listIterator()时间复杂度为常数 add()与增加的节点数相等,增加n个,O(n) 其他操作都 ...
分类:
其他好文 时间:
2021-02-23 14:37:54
阅读次数:
0
ubuntu 系统默认已安装ufw. 1.安装 sudo apt-get install ufw 2.启用 sudo ufw enable sudo ufw default deny 运行以上两条命令后,开启了防火墙,并在系统启动时自动开启。关闭所有外部对本机的访问,但本机访问外部正常。 3.开启/ ...
分类:
系统相关 时间:
2021-02-23 14:33:33
阅读次数:
0
pyspark有个bug, 虽然下面代码写了 write.mode("overwrite")但是不生效 spark.conf.set("hive.exec.dynamic.partition.mode", "constrict") db_df.repartition(1).write.mode("o ...
分类:
其他好文 时间:
2021-02-23 14:14:20
阅读次数:
0
<script src="http://pv.sohu.com/cityjson?ie=utf-8"></script> <script type="text/javascript"> document.write(returnCitySN["cip"]+','+returnCitySN["cnam ...
分类:
其他好文 时间:
2021-02-22 12:48:03
阅读次数:
0
为什么引入动态代理? 通过之前分析静态代理可以看到,由于代理类与接口绑定了,所以每个接口要分别实现代理类,然后对每个被代理对象(接口的实现类的对象)生成代理对象。 所以静态代理有这样的缺点: 1.所有接口的代理类都需要手动去实现; 2.所有切点添加同一操作的话,如日志打印,需要为每个切点分别添加; ...
分类:
其他好文 时间:
2021-02-22 12:45:54
阅读次数:
0
我测试了1.20.2版本配置glusterfs结果使用不了。记录时间2021-2-19 一、环境介绍 2台服务器都为存储服务器,都有一块20G的数据盘 注意:数据盘不要格式化操作 [root@master ~]# fdisk -l /dev/vdb Disk /dev/vdb: 21.5 GB, 2 ...
分类:
其他好文 时间:
2021-02-20 12:43:34
阅读次数:
0
先画一个爱心, 源代码: #!/usr/bin/env python # -*- coding:utf-8 -*- import turtle import time # 画心形圆弧 def hart_arc(): for i in range(200): turtle.right(1) turtl ...
分类:
编程语言 时间:
2021-02-20 12:23:41
阅读次数:
0