1.页面跳转 activity_main.xml <?xml version="1.0" encoding="utf-8"?> <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.andro ...
分类:
移动开发 时间:
2020-02-12 00:41:26
阅读次数:
83
遇到个不会的 Effective triangulation Tiling and rasterization both work on fragment patches larger than a single pixel; e.g. for Mali GPUs the tiling will u ...
分类:
其他好文 时间:
2020-02-11 20:52:47
阅读次数:
92
1,constructor():构造函数 执行时间:组件被加载前最先调用,并且调用一次 作用:定义状态机变量 注意:第一个语句必须是super() 2,componentWillMount() 执行时间:组件初始化渲染(render()被调用前) 并且仅调用一次 作用:如果在这个函数中调用setSt ...
分类:
其他好文 时间:
2020-02-11 13:16:22
阅读次数:
75
今天开始根据网络教学进行家庭小账本的编写,然后进行测试,这是第一次编写较为完善全面的Android的程序,而且作为Android的初学者,自我感觉这次编写非常的慢,有许多的方面都没有比较满意的进行,而且这次综合的知识的也不少。 先进行界面的设计, 1 <?xml version="1.0" enco ...
分类:
其他好文 时间:
2020-02-10 19:39:00
阅读次数:
86
def super(cls, inst): mro = inst.__class__.mro() return mro[mro.index(cls) + 1]1.inst 代表MRO列表2.定位当前类在MRO中的索引,返回索引+1的位置 class A: def hahaha(self): prin ...
分类:
其他好文 时间:
2020-02-10 13:51:15
阅读次数:
54
1.pytorch中给出的例子 https://github.com/pytorch/examples/blob/master/vae/main.py 实现过程非常简单: class VAE(nn.Module): def __init__(self): super(VAE, self).__ini ...
分类:
其他好文 时间:
2020-02-10 09:29:36
阅读次数:
132
#import "ViewController.h" #import <pthread.h> @interface ViewController () @property (nonatomic, strong) NSCondition *lock; @property (nonatomic, str ...
分类:
移动开发 时间:
2020-02-09 23:44:18
阅读次数:
88
类的派生、多态、抽象类、接口 1:派生-extends 派生就是继承已有类非私有的字段和方法等创建新的类,还可以添加、重写字段和方法; 在类的派生中,构造函数不可以被继承; 派生源的类-父类/基类/超类;派生的类-子类/派生类; 2:super(…)调用超类的构造函数,在子类构造函数的开头; sup ...
分类:
编程语言 时间:
2020-02-09 22:16:26
阅读次数:
79
```C# using UnityEngine; /// /// 在模型上绘画 /// public class DrawOnModel:BaseMonoBehaviour{ [Tooltip("颜色")] public Color color=Color.cyan; [Tooltip("笔刷大小"... ...
分类:
编程语言 时间:
2020-02-08 17:17:27
阅读次数:
91
上电之后要做的是通过 SCCB 协议对摄像头的寄存器进行配置,SCCB 协议在之前的博客中已经详细介绍过,其写和 IIC 完全相同,读和 IIC 相比多了个 STOP 信号。本篇博客不讲 SCCB,而是关注寄存器配置的要点。 一、图像窗口 由这段英文可知,OV5640使用寄存器 0x3800 ~ 0 ...
分类:
其他好文 时间:
2020-02-08 14:01:05
阅读次数:
306