项目场景: 提示:axios发送get和post请求都提示: Access to script at ‘XXXX’ from origin ‘null’ has been blocked by CORS policy: Cross origin requests are only supported ...
分类:
移动开发 时间:
2021-02-15 11:38:58
阅读次数:
0
import pyaudio import wave def get_audio(filepath): aa = str(input("是否开始录音? (y/n)")) if aa == str("y") : CHUNK = 1024 FORMAT = pyaudio.paInt16 CHANNEL ...
分类:
其他好文 时间:
2021-02-10 13:18:22
阅读次数:
0
一、查找镜像 1 docker search prometheus 2 docker search node-exporter 二、下载镜像 1 docker pull prom/prometheus 2 docker pull prom/node-exporter 三、验证下载的镜像是否存在 do ...
分类:
其他好文 时间:
2021-02-10 12:50:05
阅读次数:
0
原文地址:https://martinfowler.com/articles/patterns-of-distributed-systems/wal.html Write-Ahead log 预写日志 预写日志(WAL,Write-Ahead Log)将每次状态更新抽象为一个命令并追加写入一个日志中 ...
分类:
其他好文 时间:
2021-02-09 12:34:16
阅读次数:
0
1、安装,下载地址:https://github.com/MicrosoftArchive/redis/releases 2、启动, 默认目录:C:\Program Files\Redis\ 服务程序:redis-server.exe 3、远程连接、密码设置 注释掉redis.windows-ser ...
分类:
Web程序 时间:
2021-02-09 12:12:09
阅读次数:
0
A - A CodeForces - 994A You are locked in a room with a door that has a keypad with 10 keys corresponding to digits from 0 to 9. To escape from the ro ...
分类:
其他好文 时间:
2021-02-08 12:25:39
阅读次数:
0
第一章 流程控制 在一个程序执行的过程中,各条语句的执行顺序对程序的结果是有直接影响的。所以,我们必须清楚每条语句的执行流程。 而且,很多时候要通过控制语句的执行顺序来实现我们想要的功能。 1.1 流程控制语句分类 顺序结构 分支结构(if, switch) 循环结构(for, while, do… ...
分类:
其他好文 时间:
2021-02-08 12:24:05
阅读次数:
0
文章搬运,原文链接 Java 循环结构 - for, while 及 do...while 顺序结构的程序语句只能被执行一次。如果您想要同样的操作执行多次,,就需要使用循环结构。 Java中有三种主要的循环结构: while 循环 do…while 循环 for 循环 在Java5中引入了一种主要用 ...
分类:
编程语言 时间:
2021-02-08 12:04:58
阅读次数:
0
1.vue配置 /** * * 相对于该配置的nginx服务器请参考nginx配置文件 * */ module.exports = { // 基本路径 publicPath: '/', // 输出文件目录 outputDir: 'dist', // webpack-dev-server 相关配置 d ...
分类:
编程语言 时间:
2021-02-08 11:40:26
阅读次数:
0
''' @Author: feizzhang Created on: 02.02.2021 ''' def split_img_to_anypieces(img_path, output_dir, ratio_w = 2, ratio_h = 2): ''' Args: img_path: the ...
分类:
编程语言 时间:
2021-02-06 11:51:02
阅读次数:
0