Problem:The string"PAYPALISHIRING"is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed...
分类:
其他好文 时间:
2014-10-12 02:29:07
阅读次数:
187
1:Excel表中数据的行列数Sheets(1).UsedRange.Rows.CountSheets(1).UsedRange.Columns.Count或者,Sheets(1).Range("A65536").End(xlUp).RowSheets(1).Range("A65536").End(...
分类:
编程语言 时间:
2014-10-11 15:25:25
阅读次数:
151
select * from table 这个*用表具体的字段替换$sql="show COLUMNS FROM table";$rs=query($sql); while($rows=fetch($rs)) { if($rows["Type"]!='text' && $rows["Type"]!.....
分类:
Web程序 时间:
2014-10-11 14:55:26
阅读次数:
188
Given a matrix of m x n elements (m rows, n columns), return all elements of the matrix in spiral order.For example,Given the following matrix:[ [ 1, ...
分类:
其他好文 时间:
2014-10-11 08:50:35
阅读次数:
134
[leetcode]Given a matrix of m x n elements (m rows, n columns), return all elements of the matrix in spiral order....
分类:
其他好文 时间:
2014-10-10 15:11:54
阅读次数:
139
private void butCF_Click(object sender, RoutedEventArgs e) { if (DatagridDatatable != null && DatagridDatatable.Rows.Count > 0) ...
分类:
其他好文 时间:
2014-10-10 15:02:30
阅读次数:
132
查询参数常用:q - 查询字符串,必须的。fl - 指定返回那些字段内容,用逗号或空格分隔多个。start - 返回第一条记录在完整找到结果中的偏移位置,0开始,一般分页用。rows - 指定返回结果最多有多少条记录,配合start来实现分页。sort - 排序,格式:sort=+[,+]。示例:(...
分类:
其他好文 时间:
2014-10-10 14:07:54
阅读次数:
199
在数据库读出的数据,都是字符类型的,所以需要转换:时间的转换:用date ()函数来实现时间格式;date()函数默认时间是1970/01/01/ 00:00:00;要想得到想要的时间就还得用strtotime();例子:date (Y年m月d日,strtotime($rows['Postdate'...
分类:
Web程序 时间:
2014-10-09 20:51:27
阅读次数:
201
Given a matrix of m x n elements (m rows, n columns), return all elements of the matrix in spiral order.
For example,
Given the following matrix:
[
[ 1, 2, 3 ],
[ 4, 5, 6 ],
[ 7, 8, 9 ]
]
...
分类:
其他好文 时间:
2014-10-09 17:03:37
阅读次数:
143
首先在mysql中创建两个表如下:mysql> create table user( id int,name varchar(8) , primary key(id));Query OK, 0 rows affected (0.01 sec)mysql> create table addr(id i...
分类:
数据库 时间:
2014-10-09 13:56:53
阅读次数:
246