1.Invoke(string methodName,float time) 在一定时间调用methodName函数 using UnityEngine; using System.Collections; public class example : MonoBehaviour { 函数 publ ...
分类:
编程语言 时间:
2017-04-11 11:57:36
阅读次数:
233
很多时候都在讨论是否需要了解一个组件或者一个语言的底层原理这个问题,其实我个人觉得,对于这个问题,每个人都有自己的看法,个人情况不同,选择的方式也就会不同了。我个人觉得无论学习什么,都应该尝试着去了解对应的原理和源码(这里就不要急着吐槽,容我说完)。对底层的了解不是为了让你写出类似的东西,让你写也不 ...
Java Error Handling with Exceptions The basic philosophy of Java is that “badly formed code will not be run.” The ideal time to catch an error is at c ...
分类:
编程语言 时间:
2017-04-05 09:26:41
阅读次数:
230
题目链接:http://www.lydsy.com/JudgeOnline/problem.php?id=1609 解:题目很明显,我们只要找到最长不下降子序列,然后总长度减去它的长度就可以了,用o(nlogn)的方法。 但是,用O(9n)的动归,显然更优(吧。。。) 我学习了一下他人的动归。 用f ...
分类:
其他好文 时间:
2017-04-03 00:11:49
阅读次数:
252
1 类的概述 类就是事物的集合和抽象。它所代表的是这类事物共有的行为和属性。 2 类的一般形式 修饰符 class 类名{ 类型 变量名; 类型 变量名; ... 类型 方法名(参数){ } } /** 修饰符 类型 方法名(参数类型 参数1 参数类型 参数2){ 方法体 } */ public v ...
分类:
其他好文 时间:
2017-03-30 22:27:02
阅读次数:
189
redis 集群实现的原理请参考http://www.tuicool.com/articles/VvIZje 集群环境至少需要3个节点。推荐使用6个节点配置,即3个主节点,3个从节点。 新建6个文件夹 分别是 7000/7001/7002/7003/7004/7005 将redis.windows. ...
转自: http://www.cnblogs.com/sonic4x/archive/2011/07/05/2098036.html 多进程的系统中避免不了进程间的相互关系。本讲将介绍进程间的两种主要关系——同步与互斥,然后着重讲解解决进程同步的几种机制。 进程互斥是进程之间发生的一种间接性作用,一 ...
分类:
系统相关 时间:
2017-03-30 10:43:35
阅读次数:
278
namespace EFDemo { using System; using System.Data.Entity; using System.ComponentModel.DataAnnotations.Schema; using System.Linq; public partial class... ...
分类:
数据库 时间:
2017-03-29 22:12:55
阅读次数:
195
The King Time Limit: 2000MS Memory Limit: 65536K Total Submissions: 7499 Accepted: 4060 Description Once upon a time in a country far away lived a kin ...
分类:
其他好文 时间:
2017-03-20 18:41:40
阅读次数:
207
Merge, join, and concatenate pandas provides various facilities for easily combining together Series, DataFrame, and Panel objects with various kinds ...
分类:
其他好文 时间:
2017-03-19 15:54:54
阅读次数:
571