1、empty(shape[, dtype, order]) 依据给定形状和类型(shape[, dtype, order])返回一个新的空数组。参数:shape : 整数或者整型元组 定义返回数组的形状;dtype : 数据类型,可选 定义返回数组的类型。order : {‘C’, ‘F’}...
分类:
编程语言 时间:
2015-12-12 16:56:42
阅读次数:
226
相对第一次作业,使用了虚基类SHAPE和容器vector sv实现了POINT、LINE、TRIANGLE等形状的多态性,使用迭代器进行查找操作,不过还是有个bug,我发现将SHAPE里面的函数定义为虚函数,实现不了多态性,只有定义为纯虚函数时才能实现多态性,但是由于此时SHAPE为虚基类,不能定义...
分类:
其他好文 时间:
2015-12-11 01:29:11
阅读次数:
224
记录下平时常用的小知识点,知识在于积累!shape:<?xmlversion="1.0"encoding="utf-8"?>
<shapexmlns:android="http://schemas.android.com/apk/res/android"
android:shape="oval">
<cornersandroid:radius="5dp"/>
<solidandroid:color="#000000"/>..
分类:
其他好文 时间:
2015-12-08 16:17:28
阅读次数:
134
1,用于通知某个对象该做什么,即通知对象去执行某动作。在Objective-c中,“[]”的意义:它们用于通知某个对象该做什么。这种通知对象执行某中操作的行为被称为“发送消息”。例如:[shape draw]//这句话表示,通知对象shape去执行draw这个动作,也即表示像对象shape发送dra...
分类:
其他好文 时间:
2015-12-08 15:59:32
阅读次数:
127
xml引用ProgressBar样式styles.xml styles.xml边框 shape_progressbar_bg.xml填充 ...
分类:
移动开发 时间:
2015-12-07 15:41:58
阅读次数:
179
时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueGiven any string of N (>=5) characters, you are asked to form the characters into the shape ...
分类:
其他好文 时间:
2015-12-06 11:33:14
阅读次数:
137
xml控件配置属性android:background="@drawable/shape"标签corners ----------圆角gradient ----------渐变padding ----------内容离边界距离size ------------大小 solid ----------....
分类:
移动开发 时间:
2015-12-05 12:43:32
阅读次数:
144
和 3.layer-list:将多个图片或上面两种效果按照顺序层叠起来。 例子: 效果图: 转载:http://blog.csdn.net/brokge/article/details/9713041
分类:
其他好文 时间:
2015-12-01 14:31:31
阅读次数:
171
shape使用、渐变色、分割线、边框、半透明、半透明阴影效果。首先简单了解一下shape中常见的属性。(详细介绍参看api文档)转载请注明:Rflyee_大飞:http://blog.csdn.net/rflyee/article/details/20785495 --- 默认为rectangl.....
分类:
移动开发 时间:
2015-12-01 14:28:27
阅读次数:
234