摘要: 1、newAlertDialog.Builder(Lesson_01_Pic.this).setTitle("提示标题").setMessage("这是提示内容").show();2、newAlertDialog.Builder(Lesson_01_Pic.this) .setTitle("这是... 阅读全文
posted @ 2011-08-12 19:24 rorshach 阅读(184) 评论(0) 推荐(0)
摘要: newresult=regecommpile.subn(newstr,subject)返回的是一个元组,一般取第一个,即为newresult[0] 阅读全文
posted @ 2011-08-12 19:19 rorshach 阅读(318) 评论(0) 推荐(0)
摘要: 如果一个数据库支持事务,比如类型为innodb,python中应该使用conn.commit()来提交生效,如果不支持,则会自动提交的。在python中获得上次插入记录的主键是:cursor.lastrowid 阅读全文
posted @ 2011-08-12 19:17 rorshach 阅读(156) 评论(0) 推荐(0)
摘要: Android平台开发搭建一、安装jdk二、安装android的sdk1、从android网站下载sdk:http://developer.android.com/sdk/index.html选择合适版本下载。2、下载后解压缩,运行SDK Manager.exe,界面如图所示:选中可用包,并全选右... 阅读全文
posted @ 2011-08-12 19:14 rorshach 阅读(185) 评论(0) 推荐(0)