该实例是raspi和dsp电机运动控制板的串口uart通信:import serialclass SerialHandler(): ''' raspi serial for communication ''' def __init__(self)://初始化一些默认参...
分类:
编程语言 时间:
2014-07-09 21:16:54
阅读次数:
283
语言:Python描述:使用递归实现 1 # Definition for a binary tree node 2 # class TreeNode: 3 # def __init__(self, x): 4 # self.val = x 5 # self...
分类:
其他好文 时间:
2014-07-09 20:46:34
阅读次数:
168
1、//运行效果self.attributeStringLabel.attributedText = [self getAttributedStringWithString:@"富为本属性字体" aString:@"颜色" aString:@"下划线"];/*** NSMutableAttribut...
分类:
其他好文 时间:
2014-07-09 00:36:51
阅读次数:
203
例子import urllib2class RedirctHandler(urllib2.HTTPRedirectHandler):"""docstring for RedirctHandler"""def http_error_301(self, req, fp, code, msg, heade...
分类:
编程语言 时间:
2014-07-08 23:44:41
阅读次数:
584
#import "CoolSegue.h"
@implementation CoolSegue
-(void)perform
{
UIViewController* source = self.sourceViewController;
UIViewController* destination = self.destinationViewController;...
分类:
移动开发 时间:
2014-07-08 21:12:14
阅读次数:
207
#include
using namespace std;
int partition(int *a,int p,int r)
{
int x=a[r];
int i=p-1;//note i important which is used for
//storage the number smaller than flag x=a[r]
for (int j=p;j<r;j++...
分类:
其他好文 时间:
2014-07-08 21:06:59
阅读次数:
232
- (void)savePhotoToAlbum
{
ZoomScrollView *zoomScrollView = (ZoomScrollView*)[self.scrollView
viewWithTag:BEGIN_TAG_FOR_IMAGE+self.currentImagePage];
dispatch_async(dispatch_get_global_que...
分类:
移动开发 时间:
2014-07-08 19:34:27
阅读次数:
417
Problem Description:
Given an array S of n integers, are there elements a, b, c in S such that a + b + c =
0? Find all unique triplets in the array which gives the sum of zero.
Note:
El...
分类:
其他好文 时间:
2014-07-08 18:31:01
阅读次数:
159
父类中
- (id)initWithName:(NSString *)aName
sex:(NSString *)aSex
age:(NSInteger)aAge
{
//调用父类的初始化方法
self = [super init];//防止初始化失败,赋值失败
if (self) {...
分类:
其他好文 时间:
2014-07-08 17:07:59
阅读次数:
138
-(NSArray *)getdataFromDatabase
{
NSString *path = [self getDBPath];
NSLog(@"path ==== %@",path);
NSLog(@"self.getDBPath == %@",[self getDBPath]);
FMDatabase *membersDB = [FMDatab...
分类:
其他好文 时间:
2014-07-08 13:07:44
阅读次数:
127