1 import UIKit 2 import CoreData 3 4 // coredata管理器 5 class CoreDataManager: NSObject { 6 7 // 单例 8 static let sharedManager:CoreDataManager = CoreDat... ...
分类:
移动开发 时间:
2016-12-25 17:38:09
阅读次数:
231
1 /** 2 * 杨辉三角 3 * @author chunzai 4 * 5 */ 6 public class Test1 { 7 public static void main(String[] args) { 8 int a[][] = new int[7][]; 9 for(int i=... ...
分类:
其他好文 时间:
2016-12-25 13:51:03
阅读次数:
138
import java.util.Scanner; public class dengyao2 { public dengyao2() { super(); } public static void main(String[] args) { System.out.println("请输入菱形的边长 ...
分类:
编程语言 时间:
2016-12-25 13:38:51
阅读次数:
159
bus_drv_dev模型:功能改写只需改dev硬件代码即可,drv不需改写。 LED例子 下面用一个点亮LED的例子来说明这个分离的的例子: led_dev.c 定义这个平台设备的资源: static struct resource led_resource[] = { [0] = { .star ...
分类:
系统相关 时间:
2016-12-25 13:35:01
阅读次数:
258
package com.sort.shell; public class ShellSort { public static void swap(int[] list, int a, int b){ int temp; temp = list[a]; list[a] = list[b]; list[... ...
分类:
编程语言 时间:
2016-12-25 11:49:30
阅读次数:
253
from: http://lwzhanghz.blog.163.com/blog/static/136826369201251783236887/ 1)下载MACS2 下载网址: https://pypi.python.org/pypi/MACS2 $ python setup.py install ...
分类:
系统相关 时间:
2016-12-25 09:39:19
阅读次数:
6773
1. 找到文件并作如下修改: sudo vim /etc/network/interfaces 修改如下部分: auto eth0 iface eth0 inet static address 192.168.0.117 gateway 192.168.0.1 #这个地址你要确认下 网关是不是这个地 ...
分类:
系统相关 时间:
2016-12-25 01:52:54
阅读次数:
192
参数们的Power 在声明队列的时候会有很多的参数 public static QueueDeclareOk QueueDeclare(this IModel model, string queue = "", bool durable = false, bool exclusive = true,... ...
分类:
其他好文 时间:
2016-12-25 01:47:53
阅读次数:
213
在提交form表单时,比如前台是$("form").submit()同步提交的时候,这个是没有回掉函数的,那么我们只能在后台提示,在前台显示,自己作为一个参考吧 public class Script { public static void Alert(string message) { R... ...
分类:
Web程序 时间:
2016-12-25 01:25:01
阅读次数:
232
对于两种变量的交换,我发现四种方法,下面我用Java来演示一下。1.利用第三个变量交换数值,简单的方法。class TestEV//创建一个类{ public static void main(String[]args) { int x =5,y=10; //定义两个变量 int temp = x;... ...
分类:
其他好文 时间:
2016-12-24 22:55:46
阅读次数:
235