1、绘制几何图形绘制矩形效果2.绘制字符串。《textAlign:设置绘制字符串的水平对齐方式,该属性支持start,end,left,right,center等属性。textBaseAlign:设置绘制字符串的垂直对齐方式,该属性支持top,hanging,middle,alphabetic,id...
分类:
其他好文 时间:
2015-04-20 20:52:50
阅读次数:
163
SQL集合函数中case when then 使用技巧作者: 字体:[增加 减小] 类型:转载我们都知道SQL中适用case when then来转化数据库中的信息 比如 select (case sex when 0 then '男' else '女' end) AS sex from stude...
分类:
数据库 时间:
2015-04-20 20:44:06
阅读次数:
158
#!/usr/bin/envpython
#coding=utf-8
importstring
alist=[]
lease_IP=‘‘
lease_start=‘‘
lease_end=‘‘
istatus=‘‘
MAC=‘‘
f=open(‘/var/lib/dhcpd/dhcpd.leases‘)
lines=f.readlines()
f.close()
forlineinlines:
ifline.find(‘lease‘)<>-1:
lease_IP=line.split(‘\n‘)[..
分类:
其他好文 时间:
2015-04-20 18:49:48
阅读次数:
161
#import "ViewController.h"
#import
@interface DataModel : NSObject
@property (nonatomic,copy)NSString *stockName;
@property (nonatomic,assign)float price;
@end
@implementation DataModel
@end
...
分类:
移动开发 时间:
2015-04-20 18:33:54
阅读次数:
148
-module(exe5_2).
-export([start/2]).
%Points 是投掷点的个数 Cores是核数,为2的幂
start(Points,Cores)
->spawn(fun()->parent_proces(Points,Cores) end),
io:format("").parent_proces(Points,Cores) ->
Poin...
分类:
其他好文 时间:
2015-04-20 17:06:16
阅读次数:
155
#include
using namespace std;
#define MAXN 10003
bool Vis[100];
int Map[100][100],F[100][100],n,Target,Min;
struct queen
{
int top;
int end;
int node[100];
}f;
struct vertex
{...
分类:
编程语言 时间:
2015-04-20 17:01:43
阅读次数:
139
oracle打开报错:SQL> alter database open 2 ;alter database open*ERROR at line 1:ORA-03113: end-of-file on communication channelProcess ID: 29196Session ID: 1144 Serial number: 7SQL> 去查看后台alert日志,信息显示如下:E...
分类:
其他好文 时间:
2015-04-20 16:54:17
阅读次数:
118
系统地图:#import "ViewController.h"#import @interface ViewController (){ MKMapView *_mapView; CLLocationManager *_manager; UIImageView* _imageView;}@end@i...
分类:
其他好文 时间:
2015-04-20 16:30:49
阅读次数:
266
#import "ViewController.h"
@interface
ViewController ()
@end
@implementation ViewController
- (void)viewDidLoad {
// UIActivityIndicatorView
等待旋转
...
分类:
其他好文 时间:
2015-04-20 15:05:01
阅读次数:
143
问题描述:
问题分析:
解法一:设置双指针,start,end;当data[start]=‘1’,data[end]=’0’时,表示需要进行交换,次数加1;否则data[end]=’1’则前移end指针;data[start]=‘0’则后移start指针;
该算法仅需遍历一次
解法二:先遍历一次计算字符数组中0的个数zero,再计算前zero个字符中1的个数,即是要交换到后面的...
分类:
编程语言 时间:
2015-04-20 14:53:39
阅读次数:
110