什么是 matplotlib ? matplotlib 是一个数学绘图库, 我们可以用它来制作一些简单的图表,例如折线图,或散点图。 绘制简单的折线图 模块 包含很多用于生成图表的函数, 类似于 matlab 把列表作为参数传入函数 , 这个函数会尝试根据这些数字绘制出有意义的图形。 函数 会打开图 ...
分类:
编程语言 时间:
2020-02-15 18:17:02
阅读次数:
101
实现这样的卡片 上节课我们创建了 _TravelItem。一个TravelItem就代表了一个卡片。 卡片可以点击跳转到详情页面 所以最外层我们放一个手势的检测器 满足这种情况,我们才让他跳转到详情页 实现卡片的布局 带有圆角底部阴影的卡片 裁切效果 封装一个ItemImage生成上面的图片 底部是 ...
分类:
其他好文 时间:
2020-02-15 13:47:12
阅读次数:
90
首先是栈的基本操作,也就这些了 #include <bits/stdc++.h> using namespace std; int main () { stack<int> test;//声明方式:stack <数据类型> 名称 test.push(2); //向栈中压入2 test.top()=1 ...
分类:
其他好文 时间:
2020-02-15 11:51:25
阅读次数:
65
题目大意:规定 i 为入栈,o 为出栈,现在给两个字符串st1,st2,现在要将st1转化为st2,转化方法是,st1中字符从头开始入栈,并合理出栈构造出st2。请输出所有可能的出入栈步骤。 深度优先搜索+回溯~ #include<bits/stdc++.h> using namespace std ...
分类:
其他好文 时间:
2020-02-15 11:47:10
阅读次数:
53
class MinStack { public: /** initialize your data structure here. */ stack<int> stackValue; stack<int> stackmin; MinStack() { } void push(int x) { sta ...
分类:
其他好文 时间:
2020-02-14 20:52:10
阅读次数:
59
ggplot2绘图系统——几何对象之条图(包括误差条图) 1.条图 格式: positon: dodge并排 fill堆叠填充标准化为1 stack堆栈 identity不做调整 jitter点扰动 前四种排列方式分别如下图: 条形含义。 自定义条图颜色。 标度函数: type的三种类型与RColo ...
分类:
编程语言 时间:
2020-02-14 16:49:37
阅读次数:
97
一、vector动态数组 用法: 尾部添加:push_back() 元素个数:size() 是否为空:empty() 在第i个元素前面插入k:insert(a.begin()+i,k) 删除尾部元素:pop_back() 删除区间:eraser(a.begin()+i,a.begin()+j) 删除 ...
分类:
其他好文 时间:
2020-02-14 16:40:34
阅读次数:
63
不知道为啥这个题总是WA 找了好长时间也没找出来 求大佬帮忙看看 #include<iostream> #include<iomanip> #include<cstring> #include<sstream> #include<algorithm> #include<cstdio> #includ ...
分类:
其他好文 时间:
2020-02-14 01:16:56
阅读次数:
63
上面是第5讲4:5511-构造thread的时候,传入stacksize代表该线程占用的stack大小如果没指定,默认是0,0代表会忽略该参数,该参数会被jni函数使用;该参数和平台有关5:5411-所以stacksize一般用虚拟机参数指定。6:5014-join..线程A里调用线程B, 即B.j ...
分类:
编程语言 时间:
2020-02-14 00:30:07
阅读次数:
106
class CQueue { private Stack<Integer> stack1; private Stack<Integer> stack2; public CQueue() { this.stack1 = new Stack<>(); this.stack2 = new Stack<>( ...
分类:
其他好文 时间:
2020-02-13 21:17:39
阅读次数:
83