pe
AtCoder AGC038F Two Permutations (网络流、最小割)
题目链接 https://atcoder.jp/contests/agc038/tasks/agc038_f 题解 好题。 首先观察到一个性质,对于排列\(P\), 其所形成的每个轮换中的点\(A_i\)是选\(i\)还是选\(P_i\)的状态必须相同。\(Q_i\...[详细]
2020-07-21 19:49 分类:路由交换[Opencv]二维码定位(C++版本)
#include "opencv2/highgui/highgui.hpp" #include "opencv2/imgproc/imgproc.hpp" #include <iostream> #include <stdio.h> #include <stdlib.h> #include <math.h> using namespace cv; usi...[详细]
2020-07-21 15:14 分类:路由交换-
Django 配置mysql遇到问题(一)
问题一: django.core.exceptions.ImproperlyConfigured: mysqlclient 1.3.13 or newer is required; you have 0.9.3[详细]
2020-07-21 13:59 分类:Python python 面向对象进阶
isinstance() 和 issubclass() isinstance(obj,cls) 检查obj是否是类cls的对象 issubclass(sub,super) 检查sub类是否是super类的派生类[详细]
2020-07-21 13:56 分类:Pythonlinux通过expect实现脚本自动交互
1、安装步骤 ①首先,准备好所需的两个安装包 tcl8.4.13-src.tar.gz(链接:https://pan.baidu.com/s/1yTFtr1zZbYkBnIenm-HWGg ,提取码:h8ed )[详细]
2020-07-21 13:34 分类:Linux-
如何在 Linux 和 windows 启动使用 Dubbo 和 ZK
今天的知识点有 3 个: Linux 下安装、配置 JDK。 Windows 下启启动 dubbo 和 zookeeper。[详细]
2020-07-21 13:28 分类:Linux vue权限路由实现方式总结
使用全局路由守卫 实现 前端定义好路由,并且在路由上标记相应的权限信息 const routerMap = [ { path: ‘/permission‘, component: Layout, redirect: ‘/permission/index‘, alwaysShow: true, // will always show the root menu me...[详细]
2020-07-21 12:44 分类:路由交换-
smp_processor_id()获取当前执行cpu_id
基于Linux 2.6.32内核进行分析,看本篇文章前,建议先看看percpu变量这篇文章 smp_processor_id()用来获取当前cpu的id,首先来看smp_processor_id的定义:[详细]
2020-07-21 12:33 分类:Linux -
py2exe 和pyinstaller打包
两种方式:一 .py2exe (最好是在win7下面python2下去打包) 1.安装【Python3】 直接pip install py2exe,如果报ssl错误就pip install openpyxl -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com*据[详细]
2020-07-21 12:17 分类:Python linux上安装tcl、tk、expect
linux上安装tcl、tk、expect 1、tcl安装tcl8.5.9-src.tar.gz cd /tmp tar -zxvf tcl8.5.9-src.tar.gz[详细]
2020-07-21 12:01 分类:Linux