import os import sys def rename(): path=input("请输入路径:") count=1 filelist=os.listdir(path) for files in filelist: ori_dir=os.path.join(path,files) if o ...
分类:
编程语言 时间:
2020-12-10 11:19:57
阅读次数:
5
Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses. Input: n = 3Output: ["((()))","(()())","(())() ...
分类:
其他好文 时间:
2020-12-10 11:12:34
阅读次数:
5
把字幕用硬编码的方式添加到视频里去 ffmpeg -i input.mp4 -vf subtitles=zh.srt output.mp4 分离出视频里面的声音 ffmpeg -i input.mp4 -vn -y -acodec copy output.aac 把一个声音加到一个视频里面去 ffm ...
分类:
其他好文 时间:
2020-12-10 10:54:59
阅读次数:
2
<el-form-item label="考试时长:" prop="testTimeLong"> <el-input-number style="width:110px" :min="0" v-model="ruleForm.testTimeLong" controls-position="righ ...
分类:
其他好文 时间:
2020-12-09 12:25:43
阅读次数:
4
问题: 给定一颗BST(二叉搜索树),其中存在两个节点顺序颠倒,请找出他们,并恢复正确次序。 Example 1: Input: root = [1,3,null,null,2] Output: [3,1,null,null,2] Explanation: 3 cannot be a left ch ...
分类:
其他好文 时间:
2020-12-09 12:24:32
阅读次数:
5
1. Qt Creator -> File -> New File or Project -> Qt -> Qt Resource File ->添加但当前项目 2. 创建资源文件名res.qrc -> 右键 ->Open in Editor 3. 当前目录下新建文件夹images,将资源文件放在该 ...
分类:
其他好文 时间:
2020-12-09 12:07:50
阅读次数:
4
php7之前的版本 function encrypt($input) { if (version_compare(PHP_VERSION, '7.0.0') >= 0) { $size = 16; $k = C('KEY_LONG'); $input = pkcs5_pad($input, $siz ...
分类:
编程语言 时间:
2020-12-09 11:34:20
阅读次数:
12
form表单提交数据的注意事项: 1、所有获取用户输入的标签都必须放在form表单里面 2、action控制着往哪提交 3、input、select、textarea都需要有name属性 4、提交按钮 <input type='submit'> 总结: input: text password ra ...
分类:
其他好文 时间:
2020-12-08 12:25:44
阅读次数:
4
1 <!DOCTYPE html> 2 <html lang="en"> 3 <head> 4 <meta charset="UTF-8" /> 5 <meta name="viewport" content="width=device-width, initial-scale=1.0" /> 6 ...
分类:
Web程序 时间:
2020-12-07 11:48:35
阅读次数:
8
基础版 写2个路由和视图函数,一个是登录,写入cookie,访问order,必须登录以后才能访问,否则重定向到登录页面,order页面实现退出功能,清除cookie,利用登录认证装饰器,必须登录之后获取到了cookie才能进入order函数 模板文件:login页面三个input标签,分别为用户名, ...
分类:
其他好文 时间:
2020-12-05 10:53:22
阅读次数:
9