首页 文章 精选 留言 我的

精选列表

搜索[Python],共10000篇文章
优秀的个人博客,低调大师

机器学习教父Tom Mitchell:不是人人都该学Python,而要让AI理解人

卡内基梅隆大学(CMU)的机器学习系是全球高校里的第一个专门的机器学习系,其创始人Tom Mitchell 教授参与写作了1983年出版的经典教材《机器学习:一种人工智能方法》,其中的一些思想即使在今天看来,也依然深刻而历久弥新。 被誉为“机器学习教父”的Mitchell教授,专为新智元AI WORLD 2018世界人工智能峰会撰写了演讲报告《人工智能与互联的未来》,探讨峰会主题“万物互联,人机共生”。 Mitchell 教授告诉新智元,在他长达30多年的职业生涯中,机器学习技术的产业化发展,是令他印象最为深刻的一个变化。从上世纪八九十年代开始,再到如今的深度学习,机器学习技术转变为越来越多的应用,走进人们的生活。 “未来,我们可以拥有像手机一样的电灯,”Mitchell教授兴奋地说:“在餐厅里的灯泡可以观测客户是否需要点餐或结账,而医

优秀的个人博客,低调大师

第04章节-Python3.5-组件BootStrap、EasyUI、JQueryUI1用法 3

EasyUI用法: 把EasyUI下载到本地,然后看文档找到自己想要的样式,然后写到自己的代码里(推荐看源码里的demo文件里的源码)[但存在大量的Ajax操作]{不推荐用} 打开 (http://www.jeasyui.net/)或(http://www.jeasyui.com/download/v155.php)下载jquery-easyui-1.5.5.4文件(点击download下载) 然后目录如下: image.png 新建s2.html 代码如下: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Basic CRUD Application - jQuery EasyUI CRUD Demo</title> <link rel="stylesheet" type="text/css" href="jquery-easyui-1.5.5.4/themes/default/easyui.css"> <link rel="stylesheet" type="text/css" href="jquery-easyui-1.5.5.4/themes/icon.css"> <link rel="stylesheet" type="text/css" href="jquery-easyui-1.5.5.4/themes/color.css"> <link rel="stylesheet" type="text/css" href="jquery-easyui-1.5.5.4/demo/demo.css"> <script type="text/javascript" src="jquery-easyui-1.5.5.4/jquery.min.js"></script> <script type="text/javascript" src="jquery-easyui-1.5.5.4/jquery.easyui.min.js"></script> </head> <body> <h2>Basic CRUD Application</h2> <p>Click the buttons on datagrid toolbar to do crud actions.</p> <table id="dg" title="My Users" class="easyui-datagrid" style="width:700px;height:250px" url="get_users.php" toolbar="#toolbar" pagination="true" rownumbers="true" fitColumns="true" singleSelect="true"> <thead> <tr> <th field="firstname" width="50">First Name</th> <th field="lastname" width="50">Last Name</th> <th field="phone" width="50">Phone</th> <th field="email" width="50">Email</th> </tr> </thead> </table> <div id="toolbar"> <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-add" plain="true" onclick="newUser()">New User</a> <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-edit" plain="true" onclick="editUser()">Edit User</a> <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-remove" plain="true" onclick="destroyUser()">Remove User</a> </div> <div id="dlg" class="easyui-dialog" style="width:400px" data-options="closed:true,modal:true,border:'thin',buttons:'#dlg-buttons'"> <form id="fm" method="post" novalidate style="margin:0;padding:20px 50px"> <h3>User Information</h3> <div style="margin-bottom:10px"> <input name="firstname" class="easyui-textbox" required="true" label="First Name:" style="width:100%"> </div> <div style="margin-bottom:10px"> <input name="lastname" class="easyui-textbox" required="true" label="Last Name:" style="width:100%"> </div> <div style="margin-bottom:10px"> <input name="phone" class="easyui-textbox" required="true" label="Phone:" style="width:100%"> </div> <div style="margin-bottom:10px"> <input name="email" class="easyui-textbox" required="true" validType="email" label="Email:" style="width:100%"> </div> </form> </div> <div id="dlg-buttons"> <a href="javascript:void(0)" class="easyui-linkbutton c6" iconCls="icon-ok" onclick="saveUser()" style="width:90px">Save</a> <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-cancel" onclick="javascript:$('#dlg').dialog('close')" style="width:90px">Cancel</a> </div> <script type="text/javascript"> var url; function newUser(){ $('#dlg').dialog('open').dialog('center').dialog('setTitle','New User'); $('#fm').form('clear'); url = 'save_user.php'; } function editUser(){ var row = $('#dg').datagrid('getSelected'); if (row){ $('#dlg').dialog('open').dialog('center').dialog('setTitle','Edit User'); $('#fm').form('load',row); url = 'update_user.php?id='+row.id; } } function saveUser(){ $('#fm').form('submit',{ url: url, onSubmit: function(){ return $(this).form('validate'); }, success: function(result){ var result = eval('('+result+')'); if (result.errorMsg){ $.messager.show({ title: 'Error', msg: result.errorMsg }); } else { $('#dlg').dialog('close'); // close the dialog $('#dg').datagrid('reload'); // reload the user data } } }); } function destroyUser(){ var row = $('#dg').datagrid('getSelected'); if (row){ $.messager.confirm('Confirm','Are you sure you want to destroy this user?',function(r){ if (r){ $.post('destroy_user.php',{id:row.id},function(result){ if (result.success){ $('#dg').datagrid('reload'); // reload the user data } else { $.messager.show({ // show error message title: 'Error', msg: result.errorMsg }); } },'json'); } }); } } </script> </body> </html> s1.html的代码是从(http://www.jeasyui.com/demo/main/index.php)的网页中的Source Code复制的如图 image.png 把这块的代码如图 image.png : 然后把上述那块的代码修改为如下图: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Basic CRUD Application - jQuery EasyUI CRUD Demo</title> <link rel="stylesheet" type="text/css" href="jquery-easyui-1.5.5.4/themes/default/easyui.css"> <link rel="stylesheet" type="text/css" href="jquery-easyui-1.5.5.4/themes/icon.css"> <link rel="stylesheet" type="text/css" href="jquery-easyui-1.5.5.4/themes/color.css"> <link rel="stylesheet" type="text/css" href="jquery-easyui-1.5.5.4/demo/demo.css"> <script type="text/javascript" src="jquery-easyui-1.5.5.4/jquery.min.js"></script> <script type="text/javascript" src="jquery-easyui-1.5.5.4/jquery.easyui.min.js"></script> </head> 打开s2.html效果图如下: image.png JQueryUI JQueryUI用法(用法同上): JQueryUI主要用于后台管理 打开(https://jqueryui.com/)然后点击Stable下载: image.png 然后解压源码打开index.html就能看到JQueryUI的所有例子,想用那个例子就右键查看源码直接复制那块源码[推荐指数*] BootStrap(用于全栈也是最好看) BootStrap用法(): 打开(http://www.bootcss.com/)然后点击BootStrap3中文文档 或打开(https://v3.bootcss.com/) 然后能看到各种各样案例也可以在百度搜索BootStrap模板 下载BootStrap image.png

资源下载

更多资源
Mario

Mario

马里奥是站在游戏界顶峰的超人气多面角色。马里奥靠吃蘑菇成长,特征是大鼻子、头戴帽子、身穿背带裤,还留着胡子。与他的双胞胎兄弟路易基一起,长年担任任天堂的招牌角色。

Spring

Spring

Spring框架(Spring Framework)是由Rod Johnson于2002年提出的开源Java企业级应用框架,旨在通过使用JavaBean替代传统EJB实现方式降低企业级编程开发的复杂性。该框架基于简单性、可测试性和松耦合性设计理念,提供核心容器、应用上下文、数据访问集成等模块,支持整合Hibernate、Struts等第三方框架,其适用范围不仅限于服务器端开发,绝大多数Java应用均可从中受益。

Sublime Text

Sublime Text

Sublime Text具有漂亮的用户界面和强大的功能,例如代码缩略图,Python的插件,代码段等。还可自定义键绑定,菜单和工具栏。Sublime Text 的主要功能包括:拼写检查,书签,完整的 Python API , Goto 功能,即时项目切换,多选择,多窗口等等。Sublime Text 是一个跨平台的编辑器,同时支持Windows、Linux、Mac OS X等操作系统。

WebStorm

WebStorm

WebStorm 是jetbrains公司旗下一款JavaScript 开发工具。目前已经被广大中国JS开发者誉为“Web前端开发神器”、“最强大的HTML5编辑器”、“最智能的JavaScript IDE”等。与IntelliJ IDEA同源,继承了IntelliJ IDEA强大的JS部分的功能。

用户登录
用户注册