摘要: CREATE DEFINER=`root`@`%` PROCEDURE `insertmoney`()BEGIN declare i int DEFAULT 0; declare userid varchar(32); declare money decimal(19,2); DECLARE don 阅读全文
posted @ 2017-06-28 15:04 萱娃 阅读(223) 评论(0) 推荐(0) 编辑
摘要: 1 、rm -f *.sh2、grep -rn "xian" * 查找文件内容包含xian的文件(注意:文件名有xian的不会查询出)3、find . ! -name "*.sh" find . -type d -name abc**.*:表示所有文件 find: paths must preced 阅读全文
posted @ 2016-12-19 17:16 萱娃 阅读(192) 评论(0) 推荐(0) 编辑
摘要: head用法: head 参数 文件名 -cn:显示前n个字节 -n:显示前n行 例子:head -c20 1.txt 显示1.txt文件中前20个字符 ls | head -20:显示前20个文件 head -20 1.txt:显示前20行的内容 tail用法: tail -20 1.txt 显示 阅读全文
posted @ 2016-12-12 16:07 萱娃 阅读(1720) 评论(0) 推荐(0) 编辑
摘要: TypeError: ReadExcelList() takes exactly 1 argument (2 given) 传入的参数有问题 阅读全文
posted @ 2016-11-01 21:00 萱娃 阅读(142) 评论(0) 推荐(0) 编辑
摘要: 异常处理 http://www.jb51.net/article/95033.htm 文件常用操作 http://www.jb51.net/article/92946.htm 阅读全文
posted @ 2016-10-20 16:41 萱娃 阅读(142) 评论(0) 推荐(0) 编辑
摘要: class Base(object): def __init__(self): print 'Base create' class childB(Base): def __init__(self): print 'creat B ', super(childB, self).__init__() c 阅读全文
posted @ 2016-10-20 16:29 萱娃 阅读(2575) 评论(0) 推荐(0) 编辑
摘要: 1、问题:robot运行时提示:[ WARN ] Keyword 'Capture Page Screenshot' could not be run on failure: No browser is open" 现象:运行时打开浏览器后再浏览器的导航栏中无法数据url 解决方法:浏览器版本太高, 阅读全文
posted @ 2016-09-09 14:16 萱娃 阅读(8359) 评论(3) 推荐(0) 编辑
摘要: 1、如下方式去查询无法查询出结果,但直接在数据库查询中去查询是能查询到结果的,郁闷中,花了很久的时间才知道原来是双引号导致的 把:name="%s" 中的%s前后的双引号去掉就对了 2、通过自己写的方法去查询数据库的数据时必须要用到cur.fetchall(),不然查询的结果显示不出,很多时候容易忘 阅读全文
posted @ 2016-09-01 16:33 萱娃 阅读(3863) 评论(0) 推荐(0) 编辑
摘要: def hello(fn): def wrapper(): print "hello" fn() print "goodby" return wrapper@hello #@注解语法糖 # @作用:解释器会解释成下面这样的语句: #test()等价于test=hello(test)def test( 阅读全文
posted @ 2016-08-25 17:38 萱娃 阅读(188) 评论(0) 推荐(0) 编辑
摘要: def mumber(a): def add(b): return a*b return addif __name__=="__main__": c=mumber(2) d=c(5) print d 阅读全文
posted @ 2016-08-25 16:06 萱娃 阅读(169) 评论(0) 推荐(0) 编辑