模拟订阅报纸: 消费者与出版社之间没有联系,甚至互不相识,但报纸却从出版社到达了消费者手中,发布-订阅模式就是通过模拟订阅报纸,实现消息在模块之间的传递、模块与模块之间的调用。 Python样例 from blinker import Namespace # 创建一个Signal,其名为test m ...
分类:
其他好文 时间:
2021-04-16 11:41:15
阅读次数:
0
<?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> <m ...
分类:
移动开发 时间:
2021-04-16 11:40:46
阅读次数:
0
//本模板是离散后对权值建树 #include<bits/stdc++.h> #define mid (l+r>>1) using namespace std; const int N=2e5+10; struct TR { int sum,lo,ro; }tr[N<<5]; int tr_cnt; ...
分类:
其他好文 时间:
2021-04-15 12:28:09
阅读次数:
0
MarkDown学习 标题 三级标题 四级标题 分割线 字体 斜体 加粗 斜体加粗 列表 无序 A B 代码 #include<iostream> using namespace std; int main(){ cout<<"HelloWorld!"<<endl; return 0; } ...
分类:
其他好文 时间:
2021-04-15 12:10:09
阅读次数:
0
#题目 #代码 #include <unordered_map> #include <vector> using namespace std; class Solution { public: vector<int> twoSum(vector<int> &nums, int target) { v ...
分类:
其他好文 时间:
2021-04-13 12:55:20
阅读次数:
0
我用c#编写了一款猜数字游戏,系统随机生成一个1到100之间的数字,玩家进行猜测,如果猜错,提示玩家数字过大或过小,如果猜对恭喜玩家胜利,并且推出游戏。 #include<iostream> using namespace std; int main() { int num = rand() % 1 ...
分类:
其他好文 时间:
2021-04-13 12:04:34
阅读次数:
0
这里有板子 最大流 view code namespace Flow { int tot=1,fi[N],ne[M],to[M],w[M],S,T,d[N],nn; inline void add(int x,int y,int c) { ne[++tot]=fi[x],fi[x]=tot,to[t ...
分类:
其他好文 时间:
2021-04-13 11:45:28
阅读次数:
0
using System;using System.Collections.Generic;using System.Text;using System.Text.RegularExpressions; namespace ConsoleApplication1{ class Class1 { pr ...
分类:
其他好文 时间:
2021-04-13 11:44:10
阅读次数:
0
习题 1-1 请将下列公式翻译成表达式 3x + 5y $ \frac{c+1}{ab} $ $ \sqrt{3a^3}$ (n+2)(n-9) #include<iostream> #include<cmath> using namespace std; int main() { int x=1, ...
分类:
其他好文 时间:
2021-04-12 12:53:21
阅读次数:
0
四则运算代码:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks; namespace ClassLibrary1{ public ...
分类:
其他好文 时间:
2021-04-12 12:51:16
阅读次数:
0