11 2018 档案

摘要:http://blog.csdn.net/yuanguozhengjust/article/details/25747729 很多童鞋说自己是做移动开发的,想挂个简单的Web API,可是服务器又不会搭,这样一来测试就成了问题。看看网上的教程,发现略难懂,而且大多是一个转一个,没价值,所以干脆写几篇 阅读全文
posted @ 2018-11-29 17:37 andy_0212 阅读(304) 评论(0) 推荐(0)
摘要:1:在一个网站成功部署后,有可能会遇到一些错误,但是又不能直接看出错误源(如果能在源程序里下断点进行调试就好了,这样就能准确的找出错误代码),下面介绍如何在一个已经部署的网站上进行断点调试(前提有网站的Debug模式下的源码) 2:通过VS(以管理员身份打开)打开该项目的源码(这里以VS2010为例 阅读全文
posted @ 2018-11-29 17:03 andy_0212 阅读(1125) 评论(0) 推荐(0)
摘要:https://stackoverflow.com/questions/9216158/the-requested-page-cannot-be-accessed-because-the-related-configuration-data-for 文件夹没有给 IIS_IUSRS 权限 Solut 阅读全文
posted @ 2018-11-29 16:45 andy_0212 阅读(563) 评论(0) 推荐(0)
摘要:pip freeze 阅读全文
posted @ 2018-11-27 20:35 andy_0212 阅读(85) 评论(0) 推荐(0)
摘要:My takeout so far is that .transform will work (or deal) with Series (columns) in isolation from each other. You asked .transform to take values from 阅读全文
posted @ 2018-11-26 14:22 andy_0212 阅读(411) 评论(0) 推荐(0)
摘要:简介 从使用角度来看:Cygwin就是一个windows软件,该软件就是在windows上仿真linux操作系统。简言之,cygwin是一个在windows平台上运行的 linux模拟环境,使用一个Dll(动态链接库)来实现,这样,我们可以开发出Cygwin下的UNIX工具,使用这个DLL运行在Wi 阅读全文
posted @ 2018-11-26 10:04 andy_0212 阅读(240) 评论(0) 推荐(0)
摘要:https://en.wikipedia.org/wiki/Hosts_%28file%29 阅读全文
posted @ 2018-11-26 08:45 andy_0212 阅读(184) 评论(0) 推荐(0)
摘要:在cygwin下使用python: 安装cygwin,找到.bash_profile (在用户目录下 比如 C:\Cygwin\home\username\) 运行时, 参考1 安装GCC 安装git 阅读全文
posted @ 2018-11-25 16:48 andy_0212 阅读(910) 评论(0) 推荐(0)
摘要:https://files.cnblogs.com/files/andy-0212/jupyter-notebook_cheat_sheet.pdf https://www.cheatography.com/weidadeyue/cheat-sheets/jupyter-notebook/pdf_b 阅读全文
posted @ 2018-11-23 17:07 andy_0212 阅读(263) 评论(0) 推荐(0)
摘要:python import包,有事出错,试试pip uninstall/install 包 阅读全文
posted @ 2018-11-23 15:06 andy_0212 阅读(130) 评论(0) 推荐(0)
摘要:如果用PIP装不了包怎么办,可以试试用conda(如果装了Anaconda的话) 阅读全文
posted @ 2018-11-23 15:03 andy_0212 阅读(185) 评论(0) 推荐(0)
摘要:$ sudo nginx -s reload 阅读全文
posted @ 2018-11-22 23:19 andy_0212 阅读(119) 评论(0) 推荐(0)
摘要:.Net 代码为主 用 IronPython Python代码为主 用 Python.NET 具体参考:https://stackoverflow.com/questions/1168914/ironpython-vs-python-net 阅读全文
posted @ 2018-11-22 16:54 andy_0212 阅读(271) 评论(0) 推荐(0)
摘要:七年之约并不短,对我们每个人而言这都是一次长途远行。能否走到终点,能否完成这七年之约?是我们应该好好思考的问题,今天就跟大家分享其中的一个关键因素——精力管理。 不知你是否发现,很多牛人他们每天不仅要处理非常多的事务而且精力还十分充沛,他们哪来这么旺盛的精力啊?反观自己,很多时候还没做多少事情就累到 阅读全文
posted @ 2018-11-22 15:35 andy_0212 阅读(236) 评论(0) 推荐(0)
摘要:认识 MARKDOWN 导语里提到,Markdown 是一种用来写作的轻量级「标记语言」,它用简洁的语法代替排版,而不像一般我们用的字处理软件 Word 或 Pages 有大量的排版、字体设置。它使我们专心于码字,用「标记」语法,来代替常见的排版格式。例如此文从内容到格式,甚至插图,键盘就可以通通搞 阅读全文
posted @ 2018-11-22 13:46 andy_0212 阅读(214) 评论(0) 推荐(0)
摘要:If you see the error “: No such file or directory” (with nothing before the colon), it means that your shebang line has a carriage return at the end, 阅读全文
posted @ 2018-11-22 11:00 andy_0212 阅读(2554) 评论(0) 推荐(0)
摘要:first of all, type this on your console or terminal You will get some pid of supervisord just like these root 2641 12938 0 04:52 pts/1 00:00:00 grep - 阅读全文
posted @ 2018-11-22 10:57 andy_0212 阅读(731) 评论(0) 推荐(0)
摘要:Supervisor是python2写就的一款强大的运维工具(其实现在已经支持Python3了 https://github.com/Supervisor/supervisor)那么怎么利用Supervisor监控python3程序呢?本文主要讲述Supervisor在CentOS下的安装部署。 安 阅读全文
posted @ 2018-11-22 10:47 andy_0212 阅读(9699) 评论(2) 推荐(1)
摘要:/home/'username'/.local/lib/python3.6/site-packages/ 阅读全文
posted @ 2018-11-22 10:09 andy_0212 阅读(252) 评论(0) 推荐(0)
摘要:菜鸟教程 在命令状态下对当前行用== (连按=两次), 或对多行用n==(n是自然数)表示自动缩进从当前行起的下面n行。你可以试试把代码缩进任意打乱再用n==排版,相当于一般IDE里的code format。使用gg=G可对整篇代码进行排版。 vim 选择文本,删除,复制,粘贴 文本的选择,对于编辑 阅读全文
posted @ 2018-11-21 00:03 andy_0212 阅读(114) 评论(0) 推荐(0)
摘要:1.Linux链接概念Linux链接分两种,一种被称为硬链接(Hard Link),另一种被称为符号链接(Symbolic Link)。默认情况下,ln命令产生硬链接。 【硬连接】硬连接指通过索引节点来进行连接。在Linux的文件系统中,保存在磁盘分区中的文件不管是什么类型都给它分配一个编号,称为索 阅读全文
posted @ 2018-11-20 22:57 andy_0212 阅读(178) 评论(0) 推荐(0)
摘要:原文 Python2 千万不要删! 服务器上有的LINUX系统默认的是使用Python2 的,如果删除将会导致某些功能无法使用,所以千万不要删! Centos默认的是python版本一般都是2.6或者2.7。 python3的安装需要的依赖 yum install openssl-devel bzi 阅读全文
posted @ 2018-11-20 11:05 andy_0212 阅读(334) 评论(0) 推荐(0)
摘要:https://www.cheatography.com/davechild/cheat-sheets/linux-command-line/ Bash Commands uname -a Show system and kernel head -n1 /etc/issue Show distri­ 阅读全文
posted @ 2018-11-19 22:12 andy_0212 阅读(392) 评论(0) 推荐(0)
摘要:centos7安装python3.6和pip3 1.yum -y install epel-release 2..执行成功之后,再次执行yum install python-pip 3.对安装好的pip进行升级 pip install –upgrade pip (注意是两个短横线~~) 到这里pip 阅读全文
posted @ 2018-11-19 22:04 andy_0212 阅读(183) 评论(0) 推荐(0)
摘要:将自己的python程序打包成.exe/.app(秀同学一脸呐) https://blog.csdn.net/MrLevo520/article/details/51840217 Python程序打包成exe可执行文件 https://blog.csdn.net/zengxiantao1994/ar 阅读全文
posted @ 2018-11-15 09:58 andy_0212 阅读(801) 评论(0) 推荐(0)
摘要:* fetchone() : 返回单个的元组,也就是一条记录(row),如果没有结果 , 则返回 None cu.execute("select user,password from user where user='%s'" %name) arr= cur.fetchone() 此时 通过 arr 阅读全文
posted @ 2018-11-13 14:39 andy_0212 阅读(497) 评论(0) 推荐(0)
摘要:1.- How do I get mysql prompt in linux terminal? At the Enter password: prompt, well, enter root's password :) You can find further reference by typin 阅读全文
posted @ 2018-11-13 09:08 andy_0212 阅读(478) 评论(0) 推荐(0)
摘要:管理MySQL的客户端软件-MySQL Workbench 阅读全文
posted @ 2018-11-13 08:59 andy_0212 阅读(106) 评论(0) 推荐(0)
摘要:要用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 阅读(102) 评论(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 阅读(196) 评论(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 阅读(442) 评论(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 阅读(213) 评论(0) 推荐(0)