命名空间模式 即使不同的APP使用相同的URL名称,URL的命名空间模式也可以让你唯一反转命名的URL。 举个例子: 项目的urls.py写法: from django.conf.urls import url,include from django.contrib import admin url ...
分类:
Web程序 时间:
2021-05-24 02:52:14
阅读次数:
0
「CF 1520A」Do Not Be Distracted! Link. 模拟。 #include<bits/stdc++.h> char now; char get_char(){char res=getchar();while(res<'A' || res>'Z') res=getchar() ...
分类:
其他好文 时间:
2021-05-24 02:42:17
阅读次数:
0
新建一个Qt Widgets Application项目,不添加UI文件,如下图: 建立工程后,在**.pro**文件中添加: QT += charts 然后在**.h**文件中添加: #include "QChart" using namespace QtCharts; 在**.cpp**中,先添 ...
分类:
其他好文 时间:
2021-05-24 02:40:25
阅读次数:
0
如果只想在Windows 平台下使用 可以参考 我的这篇文章 https://www.cnblogs.com/guolongzheng/p/13939527.html 代码片段 #pragma once #include <string> #include <codecvt> #include <l ...
分类:
编程语言 时间:
2021-05-24 02:38:25
阅读次数:
0
有向图强连通分量SCC P3387【模板】缩点 注释放代码里啦 时间复杂度O(n+m) #include<iostream> #include<cstdio> #include<cstdlib> #define maxn 100010 #define maxm 1000010 using names ...
分类:
其他好文 时间:
2021-05-24 02:15:52
阅读次数:
0
数据结构二叉树的基本操作设计#include <conio.h> #include <stdio.h> #include <stdlib.h> #include <math.h> #define MAXLEN 100 #define NLAYER 4 typedef struct BiTNode / ...
分类:
编程语言 时间:
2021-05-24 01:40:53
阅读次数:
0
链接:https://ac.nowcoder.com/acm/problem/17193 1 #include<bits/stdc++.h> 2 using namespace std; 3 const int N = 1000100; 4 bitset<N>s,p; 5 int main() { ...
分类:
其他好文 时间:
2021-05-24 01:32:55
阅读次数:
0
请求转发: 一种在服务器内部的资源跳转方式 1. 步骤: 1. 通过request对象获取请求转发器对象:RequestDispatcher getRequestDispatcher(String path) 2. 使用RequestDispatcher对象来进行转发:forward(Servlet ...
分类:
其他好文 时间:
2021-05-24 01:02:09
阅读次数:
0
#include <stdio.h> #include <stdlib.h> #define N 1000 int fun(int n,int m,int bb[N]) { int i,j,k=0,flag; for(j=n;j<=m;j++) { flag= 1; for(i=2;i<j;i++) ...
分类:
其他好文 时间:
2021-05-24 00:15:41
阅读次数:
0
题目 Atcoder 思路 代码 #include <iostream> #include <algorithm> #include <cmath> #include <map> #define int long long using namespace std; const int N = 100 ...
分类:
其他好文 时间:
2021-05-24 00:04:21
阅读次数:
0