上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 53 下一页
摘要: 执行 时候出错: 解决方法: 到instance1所在的server上,执行 然后进入n-cpu服务: 就OK了 阅读全文
posted @ 2017-01-06 11:22 圆旭 阅读(4454) 评论(0) 推荐(0) 编辑
摘要: First, you need to import from inspect and os Next, wherever you want to find the source file from you just use 阅读全文
posted @ 2017-01-03 16:45 圆旭 阅读(234) 评论(0) 推荐(0) 编辑
摘要: 注: jquery.validate只能用于html原生form标签下的校验。 转自: https://zhidao.baidu.com/question/316404846.html 阅读全文
posted @ 2017-01-03 13:45 圆旭 阅读(1563) 评论(0) 推荐(0) 编辑
摘要: Question: I have a form with a password field. The password has to be at least 8 characters long. It applies the "required" rule, but it just ignores 阅读全文
posted @ 2017-01-03 13:38 圆旭 阅读(195) 评论(0) 推荐(0) 编辑
摘要: git diff A10..A1 > my.diff转自: http://stackoverflow.com/questions/19067896/saving-the-entire-git-diff-between-two-commits-in-a-text-file 阅读全文
posted @ 2016-12-30 21:34 圆旭 阅读(155) 评论(0) 推荐(0) 编辑
摘要: 一、基础操作 首先输入命令开始。 然后,基本组合 Ctrl+b(同时按下ctrl和b),按完松开 松开后,按%(即同时按下shift和5),是水平分割 按“(即同时按shift和'),是纵向分割 按上下左右箭头,可以选择当前窗口 二、窗口管理 创建新窗口: c 关闭当前窗口:& 阅读全文
posted @ 2016-12-30 15:13 圆旭 阅读(1218) 评论(0) 推荐(0) 编辑
摘要: print pairs的结果为: 方法一: 方法二: 转自: http://stackoverflow.com/questions/18283725/how-to-create-a-python-dictionary-with-double-quotes-as-default-quote-forma 阅读全文
posted @ 2016-12-28 16:54 圆旭 阅读(307) 评论(0) 推荐(0) 编辑
摘要: 1. 单引号和双引号用法都是一样的,但是如果字符串里有相同的字符时要使用\进行转义举例:1) print 'hello'2) print "hello"1和2,结果都是hello3) print 'hell\'o'4) print "hell'o"3和4,结果都是hell'o5) print 'he 阅读全文
posted @ 2016-12-28 16:29 圆旭 阅读(483) 评论(0) 推荐(0) 编辑
摘要: 刚刚测试发现一段很简单的、看似正确的代码却是错误的: 大家知道PHP 版本自从5.2.0 之后添加了两个支持json 的函数,分别是json_encode 和json_decode,其中json_decode 函数是把json 字符串转换为json 对象,如上例所示。但上面的例子的输出却为null, 阅读全文
posted @ 2016-12-28 14:30 圆旭 阅读(4461) 评论(0) 推荐(0) 编辑
摘要: Use is when you want to check against an object's identity (e.g. checking to see if var is None). Use == when you want to check equality (e.g. Is var  阅读全文
posted @ 2016-12-27 12:33 圆旭 阅读(200) 评论(0) 推荐(0) 编辑
上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 53 下一页