摘要: package mainimport ( "os/exec" "syscall")// open opens the specified URL in the default browser of the user.func main() { // 无GUI调用 cmd := exec.Comman 阅读全文
posted @ 2020-12-31 23:18 _callback 阅读(653) 评论(0) 推荐(0) 编辑
摘要: python书籍整理 PYTHON自然语言处理中文翻译 NLTK 中文版.pdf http://www.22wenku.com/pdf/21433.html python简明教程中文.pdf http://www.22wenku.com/pdf/22083.html Python编程:从入门到实践. 阅读全文
posted @ 2020-10-18 02:27 _callback 阅读(880) 评论(0) 推荐(0) 编辑
摘要: 面向对象主要针对面向过程。 面向过程的基本单元是函数。 什么是对象:EVERYTHINGISOBJECT(万物皆对象) 所有的事物都有两个方面: 有什么(属性):用来描述对象。 能够做什么(方法):告诉外界对象有那些功能。 后者以前者为基础。 大的对象的属性也可以是一个对象。 为什么要使用面向对象: 阅读全文
posted @ 2020-10-18 02:20 _callback 阅读(211) 评论(0) 推荐(0) 编辑
摘要: 出 钞 模 块 M-STATUS(主代码) 00 无故障 01 自检过程中未发现钞箱,或钞箱未安装好、未插入。 02 太多的钞票被拒绝(可能是因为钞票的尺寸过大或过小,或叠钞过多,或钞票上有补粘贴物。) 03 吸钞失败。 04 钱箱的钞票太少(无钞票)造成吸钞失败。 05 钞票堵塞在主传送架内,或传 阅读全文
posted @ 2020-10-12 01:52 _callback 阅读(582) 评论(0) 推荐(0) 编辑
摘要: //在xadmin.js中添加 Xadmin.prototype.add_tab_f = function (title,url,is_refresh) { var element=parent.layui.element; var id = md5(url);//md5每个url//防止重复打开 阅读全文
posted @ 2020-06-08 17:23 _callback 阅读(11083) 评论(0) 推荐(0) 编辑
摘要: 'username' => 'required|min:5|max:20|unique:manager,username', unique:manager,username' manager是表名 username 字段 阅读全文
posted @ 2020-05-26 18:05 _callback 阅读(947) 评论(0) 推荐(0) 编辑
摘要: 1、查询所有有子节点的分类 Category::hasChildren()->get(); 2、查询有子节点 但不是根分类的 Category::hasChildren()->withoutRoot()->get(); 3、查询某个节点 所有的后代 Category::hasChildren()-> 阅读全文
posted @ 2020-04-30 17:43 _callback 阅读(166) 评论(0) 推荐(0) 编辑
摘要: <input type="text" id="subject_add" name="subject_add" lay-verify="subject_add" class="layui-input"> lay-verify="subject_add" <script>layui.use(['form 阅读全文
posted @ 2020-04-27 14:39 _callback 阅读(2999) 评论(0) 推荐(0) 编辑
摘要: If you are using MariaDB or an older version of MySQL, you need to place this code in your AppServiceProvider.php: use Illuminate\Support\Facades\Sche 阅读全文
posted @ 2020-04-24 01:24 _callback 阅读(1129) 评论(0) 推荐(0) 编辑
摘要: 表单验证 快速生成 php artisan make:requests LoginRequest public function authorize() { return true; } /** * 表单验证的验证规则 * * @return array */ public function rul 阅读全文
posted @ 2020-04-22 23:04 _callback 阅读(145) 评论(0) 推荐(0) 编辑