#!/usr/bin/env python# -*- coding: utf-8 -*-import sys,reimport urllib.request,urllib.parse,http.cookiejarclass myW3(): def login(self): 'post 数据' dat...
分类:
编程语言 时间:
2014-07-21 08:22:06
阅读次数:
354
public class Solution { public String reverseWords(String s) { String ans=reverse(s); String s2[]=ans.split("\\s+"); ...
分类:
其他好文 时间:
2014-07-21 08:20:33
阅读次数:
203
1 package com.filetest; 2 3 import java.io.File; 4 import java.util.Scanner; 5 6 public class fileview { 7 8 public static void main(String ar...
分类:
编程语言 时间:
2014-07-21 08:18:26
阅读次数:
206
这里打算零碎记录下多线程相关内容1. AFNetworking中使用一个子线程处理所有的网络请求,原因很简单,一个runloop就是基于kqueue,多路复用2. NSOperation基于GCD,可以实现线程数控制、依赖管理、取消;线程数控制倒不是问题,依赖管理也可以在GCD上实现,取消功能我倒不...
分类:
移动开发 时间:
2014-07-21 08:18:04
阅读次数:
266
The Complete Diffie-Hellman Key Exchange Diagram The process begins when each side of the communication generates a private key. Each side then genera...
分类:
其他好文 时间:
2014-07-21 08:16:46
阅读次数:
287
1 package com.filetest; 2 3 import java.io.File; 4 import java.util.Date; 5 import java.util.Scanner; 6 7 public class findfile { 8 9 ...
分类:
编程语言 时间:
2014-07-21 08:13:26
阅读次数:
259
###有约束优化概述基本的观点是有约束优化都是类似于盖房子。首先是最基本的砖块,然后才是有各种各样的用砖块建的房子。这个最基本的砖块就是线性约束的二次优化问题。####线性等式约束的二次优化(Equality Constrained Qudratic Programming)需要优化的目标具有如下的...
分类:
其他好文 时间:
2014-07-21 08:09:22
阅读次数:
231
导演类创建和操作主窗口,并且管理什么时候创建并执行场景(CCSene)。导演类同时还负责OpenGl的相关创建( 因为目前水平有限,对Opengl不甚理解,学习后补充 )。 导演类是一个单例模式类。主要成员变量: CCEGLView* m_pobOpenGLView; 所有东西渲染处理的类 ...
分类:
其他好文 时间:
2014-07-21 08:08:59
阅读次数:
171
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;using System.Windows;namespace ConsoleA...
分类:
其他好文 时间:
2014-07-21 08:07:57
阅读次数:
311
矩阵的快速幂sn 1 1 0 0 sn-1fn+1 = 0 3 2 7* fnfn 0 1 0 0 fn-1fn-1 0 0 1 0 fn-2#include #include using namespace std;int n;struct M{ int t[4][4]...
分类:
其他好文 时间:
2014-07-21 08:07:13
阅读次数:
221