T1 星际旅行 考试时觉得是道数学题,但没想到忘了欧拉路。 首先将每条边都拆成两条边,那么题目就变成了任意删掉两条边,使得新的图中存在欧拉路。设 \(sum\) 表示自环的数量, \(du_{i}\) 表示不算自环,点 \(i\) 的度数,考虑以下几种情况, 删任意两个自环,则对答案的贡献为 \(\ ...
分类:
其他好文 时间:
2021-06-19 19:09:37
阅读次数:
0
Mac使用npm更新包出现问题,使用n切换到不同版本时出错信息还不相同 npm ERR! Cannot read property 'resolve' of undefined npm ERR! asyncWrite is not a function 怀疑是使用brew更新所有软件时顺带更新了no ...
分类:
系统相关 时间:
2021-06-19 18:42:10
阅读次数:
0
什么是进程? 程序:一个未运行的二进制文件,叫做程序。如Windows下的PE文件 进程:二进制文件运行后,文件本身以及用到的资源称为进程,他是操作系统分配资源的基本单元。 多任务:不止可以通过线程完成多任务,还可以通过进程完成多任务。 使用Process实现多进程 from multiproces ...
分类:
编程语言 时间:
2021-06-18 20:02:02
阅读次数:
0
用ffmpeg命令从视频文件中提取音频 命令:ffmpeg -i D:\AI\bili_data\test.mp4 -vn -y -acodec copy D:\AI\bili_data\output.aac # 从视频中提取音频 def video_to_audio(video_file,audi ...
分类:
编程语言 时间:
2021-06-18 19:49:50
阅读次数:
0
error 1: Unable to open 'raise.c': Unable to read file '/build/glibc-S9d2JN/glibc-2.27/sysdeps/unix/sysv/linux/raise.c' (Error: Unable to resolve non- ...
分类:
其他好文 时间:
2021-06-18 18:49:18
阅读次数:
0
The current C++11 std::launch only has two modes: async or deferred. In a production system, neither is what you want: async will launch a new thread ...
分类:
编程语言 时间:
2021-06-18 18:48:54
阅读次数:
0
TP框架使用命令行 <?php namespace app\command; use think\Db; use app\shopee\Item; use think\console\Input; use think\console\Output; use think\console\Command ...
分类:
其他好文 时间:
2021-06-17 17:23:24
阅读次数:
0
os.listdir 与 glob.glob os.listdir : 获取文件夹下,文件及文件夹名称 glob.glob : 获取文件夹下,符合通配符的文件及文件夹的路径 注意:不要在末尾加 \,文件夹参数就到文件夹,不用加\,文件通配符,也不用加 \ In [18]: e = os.listdi ...
分类:
其他好文 时间:
2021-06-17 17:20:14
阅读次数:
0
Delphi XE UniGUI 错误:Unable to locate file“uniGUIType.pas” 一开始,我以为是没有设置好路径,所以做了以下动作: 结果才知道,UniGUI 官方安装包里根本没有公布pas这个文件,只提供了dcu的文件。 创建时间:2021.06.15 更新时间: ...
let fs = require('fs'); // 1 创建写入流 // fs.createWriteStream(文件路径,[可选择的配置操作]) // 2 let ws = fs.createWriteStream("hello.txt",{flag:'w',encoding:"utf8"}) ...
分类:
其他好文 时间:
2021-06-15 17:37:58
阅读次数:
0