let str = 'aaabcdeeefgghhhigkkabasde' 思路: 对象 遍历字符串存在对象属性次数就加一,不存在对象属性就定义这个属性并给默认值 let str = 'aaabcdeeefgghhhigkkabasde' let obj = {} for(let i = 0; i ...
分类:
其他好文 时间:
2021-02-24 13:04:26
阅读次数:
0
翻译自微软官网 https://docs.microsoft.com/en-us/dotnet/desktop/wpf/advanced/dependency-properties-overview?view=netframeworkdesktop-4.8 1、依赖属性和CLR属性 在WPF中,属性 ...
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
一、概述 在项目中,点击下载按钮,就可以下载文件。 传统的下载链接一般是get方式,这种链接是公开的,可以任意下载。 在实际项目,某些下载链接,是私密的。必须使用post方式,传递正确的参数,才能下载。 二、django项目 本环境使用django 3.1.5,新建项目download_demo 安 ...
分类:
其他好文 时间:
2021-02-20 11:55:24
阅读次数:
0
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) 1. os.path.abspath(file)返回的是.py文件的绝对路径,也就是settings.py这个文件路径 2. os.path.dirname( ...
分类:
其他好文 时间:
2021-02-20 11:46:09
阅读次数:
0
Sexy primes are pairs of primes of the form (p, p+6), so-named since "sex" is the Latin word for "six". (Quoted from http://mathworld.wolfram.com/Sexy ...
分类:
其他好文 时间:
2021-02-20 11:45:24
阅读次数:
0
Java常用类(十五) String package com.importc; public class stringDemo01 { public static void main(String[] args) { String s1 = "Hello"; String s2 = "HELLO"; ...
分类:
编程语言 时间:
2021-02-19 13:48:05
阅读次数:
0
今天新建一个spring web项目,发现报错了。问题如下。 排除了网络问题,找到了解决办法。打开设置,点击check connection 输入 https://start.spring.io 点击OK 成功创建 ...
分类:
编程语言 时间:
2021-02-19 13:37:10
阅读次数:
0
网络编程的要素 IP和端口号 网络通信协议 TCP 客户端 连接服务器socket 发送消息 public static void main(String[] args) throws IOException { //创建一个socket连接 Socket socket = new Socket(I ...
分类:
其他好文 时间:
2021-02-19 13:14:53
阅读次数:
0
1.application.yml ###################以下为Redis增加的配置########################### spring: redis: #单机配置 # host: 122.51.50.249 # port: 6380 timeout: 6000 # ...
分类:
编程语言 时间:
2021-02-19 13:07:48
阅读次数:
0