上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 21 下一页
摘要: 要用exception 下面的代码可以处理异常 下面的代码不会 From the Python documentation: If the finally clause raises another exception or executes a return or break statement, 阅读全文
posted @ 2018-11-12 15:43 andy_0212 阅读(90) 评论(0) 推荐(0) 编辑
摘要: pip是python环境的包管理工具,用它可以方便地管理第三方包,其功能类似于Linux系统下的yum或apt-get。 常用命令: To list all the options that pip can use:>>> pip --help Search packages from the Py 阅读全文
posted @ 2018-11-12 09:00 andy_0212 阅读(185) 评论(0) 推荐(0) 编辑
摘要: 如果服务器端代码如下,则浏览器访问的时候,总是下载文件。需要加上 content_type='text/html' 比如: return web.Response(body=b'<h1>Index</h1>', content_type='text/html') 就能解决问题。 就能解决问题。 1 阅读全文
posted @ 2018-11-10 21:51 andy_0212 阅读(424) 评论(0) 推荐(0) 编辑
摘要: 1. mysql.connector Python version (8.0) can connect to MySQL Server version 8.0, 5.7, 5.6, and 5.5, can not connect to MySQL Server version 5.1 2. pym 阅读全文
posted @ 2018-11-09 16:31 andy_0212 阅读(208) 评论(0) 推荐(0) 编辑
摘要: 1. show all the rows or columns from a DataFrame in Jupyter QTConcole if the df has a lot of rows or columns, then when you try to show the df, pandas 阅读全文
posted @ 2018-10-25 15:17 andy_0212 阅读(1257) 评论(0) 推荐(0) 编辑
摘要: 服务器客户要求使用linux,未了操作方便,于是考虑如何使用可视化界面操作,以下是使用CentOS7安装GNOME可视化界面流程的步骤总结和归纳: 1:使用Xshell或jutty等连接工具进入系统(默认用户名root) 2:执行命令安装 Gnome 包 $sudo yum groupinstall 阅读全文
posted @ 2018-10-24 09:58 andy_0212 阅读(2344) 评论(0) 推荐(0) 编辑
摘要: 1. 安装 MySQL(其实MariaDB更好):https://www.rosehosting.com/blog/how-to-install-mysql-on-centos-7/ 2. 改变Authentication 方式:MySQL 8.0报错:error 2059: Authenticat 阅读全文
posted @ 2018-10-17 17:44 andy_0212 阅读(120) 评论(0) 推荐(0) 编辑
摘要: pyodbc: MySQL Connector/Python: 阅读全文
posted @ 2018-10-17 17:34 andy_0212 阅读(183) 评论(0) 推荐(0) 编辑
摘要: 转载自:http://www.log4cpp.com/learnother/27.html 今天在本地调试的时候,把从服务器上导出的sql文件导入到本地的mysql上,但是在执行的过程中却收到了这个错误 ”Error Code: 1118 - Row size too large (> 8126). 阅读全文
posted @ 2018-10-17 17:30 andy_0212 阅读(1402) 评论(0) 推荐(0) 编辑
摘要: 使用ODBC时,要注意兼容的数据库版本号 阅读全文
posted @ 2018-10-16 17:51 andy_0212 阅读(811) 评论(0) 推荐(0) 编辑
上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 21 下一页