17.7 给定一个整数,打印该整数的英文描述(例如“One Thousand,Two Hundred Thirty Four”)。解法:举个例子,在转换19 323 984时,我们可以考虑分段处理,没三位转换一次,并在适当的地方插入“thousand”(千)和“million”(百万)。也即,con...
分类:
其他好文 时间:
2014-12-13 10:45:57
阅读次数:
158
隐藏软键盘一直是我头痛的事情,没有找到一种真正能隐藏的方法。点击EditText的时候总是弹出软键盘。-----杯具杯具(一):Java代码InputMethodManagerim=(InputMethodManager)mEdit.getContext().getSystemService(Con...
分类:
移动开发 时间:
2014-12-12 13:09:26
阅读次数:
123
Sql Server 中一个非常强大的日期格式化函数Select CONVERT(varchar(100), GETDATE(), 0): 05 16 2006 10:57AMSelect CONVERT(varchar(100), GETDATE(), 1): 05/16/06Select CON...
分类:
数据库 时间:
2014-12-12 13:01:59
阅读次数:
225
/// /// 数据备份 /// /// public bool DataBackup(string getpath) { try { SqlConnection con = new SqlConnection();//利用代码实现连接数据库 con.ConnectionString = Co...
分类:
数据库 时间:
2014-12-12 11:29:00
阅读次数:
322
【题目】
Given a collection of integers that might contain duplicates, S, return all possible subsets.
Note:
Elements in a subset must be in non-descending order.The solution set must not con...
分类:
其他好文 时间:
2014-12-10 12:38:33
阅读次数:
196
Error: Most middleware (like favicon) is no longer bundled with Express and must be installed separately. Please see https://github.com/senchalabs/con...
分类:
其他好文 时间:
2014-12-09 21:16:24
阅读次数:
840
1、彼此的关联性(1)controller与View的关联二者是双向关系,但Controller的主动性更高。controller为主动时,可决定显示那个View.view为主动时,View可决定数据要送回到哪一个controller的Action上。view需要数据时,可决定数据应该从哪一个con...
分类:
Web程序 时间:
2014-12-09 21:12:59
阅读次数:
347
libs:pymongopython2.7.61、建立连接#encoding=utf8
frompymongoimportMongoClient
url=‘mongodb://user_name:passwd@server_ip[:port]/datebase‘#管理员要接入admin数据库,由于mongoDB的验证模式,其他数据库可能无权限!
con=MongoClient(url)2、选择DB并连接collectiondb=c..
分类:
数据库 时间:
2014-12-09 19:52:11
阅读次数:
274
六、调试路由:1.安装Route Debugger: 在NuGet包管理器控制台输入:install-package routedebugger2.使用Route Debugger: 一旦安装了Route Debugger对RouteDebugger.dll的引用便被添加到项目中,web.con.....
分类:
Web程序 时间:
2014-12-09 00:29:24
阅读次数:
249
<?php
$con=mysql_connect("localhost","root","") or die("failed to connect db");
mysql_select_db("lio")or die ("failed to select db");
$user=$_GET['user'];
$passwd=$_GET['passwd'];
$i="INSERT INTO...
分类:
移动开发 时间:
2014-12-07 23:15:46
阅读次数:
168