首先要使用echarts需要引入百度最新的JS库,echarts.js 立体柱状图效果 实例分享 const data = [220, 182, 191, 234, 290, 330, 310] const sideData = data.map(item => item + 4.5) option ...
分类:
其他好文 时间:
2020-05-31 11:23:22
阅读次数:
820
起因 工作以后由于大量使用到了flex布局而碰到了一些尚不清楚的问题,以及一些有意思的特性,在此写篇博客记录一下。 flex三个值的含义 众所周知,flex布局所有的属性有两种:一种作用在弹性容器(Flex container)上,一种作用在弹性项目(Flex item)上,而flex就是作用在弹性 ...
分类:
其他好文 时间:
2020-05-31 11:07:17
阅读次数:
63
my_set = set() #create a new set, 虽然set的显示结果为{item, item1...},但是不能用{}来创建集合,应该{}默认是创建dict print(help(my_set)) #查看帮助 my_set.add('jerry') #添加元素用add,而非lis ...
分类:
编程语言 时间:
2020-05-31 10:51:08
阅读次数:
119
import pyglet class Window(pyglet.window.Window): def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) def attach(self, widget): def ...
分类:
其他好文 时间:
2020-05-30 18:24:15
阅读次数:
47
element-ui el-upload限制图片格式尺寸及图片 html: <el-form> <el-form-item label="上传图片:" > <el-upload style="width:654px;hight:270px" :before-upload="beforeUpload" ...
分类:
其他好文 时间:
2020-05-30 15:29:34
阅读次数:
242
# 这么简单,写个毛线啊,只是让自己不会那么过早的遗忘。本来是计划来几个lambda表达式的,不费时间了折腾SQL去. l = [1,3,5,7,9,11] res = [] for item in l: res.append(item+1) print('方法1:正常的迭代: ',res) ### ...
分类:
其他好文 时间:
2020-05-29 21:36:09
阅读次数:
84
前言 在以前我们实现一个pressed 按下改变图标的颜色或者图标背景的颜色时,我们需要2张位图图片。在xml里写 <item android:state_pressed="false" ...> 来实现。这种方式让app需要保存更多的图片造成更大的app。在有矢量图后我们就可以使用一个矢量图实现这 ...
分类:
移动开发 时间:
2020-05-29 21:22:14
阅读次数:
178
题目描述 从上到下按层打印二叉树,同一层结点从左至右输出。每一层输出一行。 思路:层次遍历 vector<vector<int> > Print(TreeNode* pRoot) { vector<vector<int> > vec; if(pRoot == NULL) return vec; qu ...
分类:
其他好文 时间:
2020-05-29 17:48:51
阅读次数:
45
题目描述 给定一棵二叉搜索树,请找出其中的第k小的结点。例如, (5,3,7,2,4,6,8) 中,按结点数值大小顺序第三小结点的值为4。 思路:中序遍历第k个节点 TreeNode* KthNode(TreeNode* pRoot, int k) { //中序遍历 int count=0; Tre ...
分类:
其他好文 时间:
2020-05-29 17:42:34
阅读次数:
52
<div class="df mb20"> <input type="text" readonly placeholder="请选择图片" class="form-control col-sm-6"> <input type="text" style="width: 100px;" readonly ...
分类:
Web程序 时间:
2020-05-29 12:08:25
阅读次数:
76