环境: win10 Python 3.7.5 vs code 解决方法: 新建环境变量,然后重启 vs code 就可以了 QT_QPA_PLATFORM_PLUGIN_PATH C:\Users\Administrator\Desktop\新建文件夹 (2)\venv\Lib\site-packa ...
1. clear 清屏 一般我们连接服务器的时候 就会用到ssh 通过它来连接服务器 进而和服务器各种对话2.pwd(print word directory) 显示出当前所处的路径 例如显示/home/why 此时我们就对why这个路径操作3.ls(list) 显示出当前路径下的所有文件加上 -l ...
分类:
其他好文 时间:
2020-07-04 18:56:51
阅读次数:
95
问题的可能原因: 可能是传递给avformat_alloc_output_context2()函数的filename参数不对,并不是一个正常的字符串。 问题解决办法: 检查avformat_alloc_output_context2()的输入参数是否都合理。 问题历程: 在使用QT+ffmpeg库做 ...
分类:
其他好文 时间:
2020-07-04 16:46:11
阅读次数:
274
const fs=require('fs'); //比较字符基类大小 相同返回0,str1>str2 返回1,str1<str2 返回-1, function str_compare(str1,str2){ let index=0; let dis=0; while (dis 0&&index<st ...
分类:
编程语言 时间:
2020-07-04 15:35:58
阅读次数:
79
本地数据卷的使用:hostPath, emptyDir emptyDir(容器数据共享) hostPath(访问宿主机数据) Kubernetes中的Volume提供了在容器中挂载外部存储的能力 Pod需要设置卷来源(spec.volume)和挂载点(spec.containers.volumeMo ...
分类:
其他好文 时间:
2020-07-04 15:25:09
阅读次数:
65
看下下面的apache的一个配置,具体代码如下: <Directory /> Order allow,deny #1 Allow from all #2 deny from 192.9.200.69 #3 </Directory> Allow和Deny哟关于apache的conf文件或者htacce ...
分类:
数据库 时间:
2020-07-04 15:18:53
阅读次数:
76
import datetime import os from flask import Flask, send_from_directory, request from flask_cors import CORS app = Flask(__name__) CORS(app) @app.route ...
分类:
其他好文 时间:
2020-07-04 15:15:29
阅读次数:
94
Given a binary array, find the maximum number of consecutive 1s in this array. Example 1: Input: [1,1,0,1,1,1] Output: 3 Explanation: The first two di ...
分类:
其他好文 时间:
2020-07-04 13:47:53
阅读次数:
61
package LeetCode_295 import java.util.* /** * 295. Find Median from Data Stream * https://leetcode.com/problems/find-median-from-data-stream/descripti ...
分类:
其他好文 时间:
2020-07-04 01:10:12
阅读次数:
49
定位界面元素 1、根据元素特征:id,name,class,tag,超链接 写法1: ele=driver.find_element_by_id('kw') 写法2: from selenium.webdriver.common.by import By ele=driver.find_elemen ...
分类:
其他好文 时间:
2020-07-03 23:25:03
阅读次数:
86