摘要: package main import "fmt" //golang匿名变量特点是一个下划线"_",称为空白标识符,可以用于声明变量或者赋值 func GetUserInfo()(int,string){ UserName := "roddy" UserAge := 27 return UserAg 阅读全文
posted @ 2020-04-07 17:59 普拉多VX 阅读(201) 评论(0) 推荐(0) 编辑
摘要: 实现代码: for i:=1;i<=9;i++{ for c:=1;c<=i;c++{ fmt.Printf("%d * %d=%d ",c,i,i*c) } fmt.Println("") } 运行结果: 1 * 1=1 1 * 2=2 2 * 2=4 1 * 3=3 2 * 3=6 3 * 3= 阅读全文
posted @ 2020-04-07 16:31 普拉多VX 阅读(312) 评论(0) 推荐(0) 编辑
摘要: https://github.com/lzwme/bootstrap-suggest-plugin 阅读全文
posted @ 2015-11-02 14:12 普拉多VX 阅读(1059) 评论(0) 推荐(0) 编辑
摘要: 报错:[2013-11-29 14:27:48,297: ERROR/MainProcess] Task app.add[e5d184c0-471f-4fc4-804c-f760178d4847] raised exception: AssertionError('daemonic processe... 阅读全文
posted @ 2015-10-27 11:11 普拉多VX 阅读(3175) 评论(1) 推荐(0) 编辑
摘要: django 开启了CSRF功能导致jquery ajax post数据报错解决方法在post数据里引入csrfmiddlewaretoken: '{{ csrf_token }}'},同时需要在form表单中设置{% csrf_token %} 阅读全文
posted @ 2015-10-15 11:20 普拉多VX 阅读(833) 评论(0) 推荐(0) 编辑
摘要: wgethttp://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm 阅读全文
posted @ 2015-10-09 11:52 普拉多VX 阅读(248) 评论(0) 推荐(0) 编辑
摘要: CentOS 6.5上安装的python版本是2.6.6,不能满足我运行软件的要求,所以对python进行升级。原以为这也就是安装个软件的事儿,在我求稳搜索一下了之后发现,也并不是那么单纯简单。下载,解压,编译,安装,这些都是常规操作了。据说系统自带的旧版本python被严重依赖,所以不能卸载原Py... 阅读全文
posted @ 2015-09-07 15:29 普拉多VX 阅读(2222) 评论(0) 推荐(0) 编辑
摘要: #!/usr/bin/env python#coding: utf-8#author:luodi date:2015/02/12#description:this is a send mail scriptimport smtplibfrom email.mime.multipart import... 阅读全文
posted @ 2015-02-12 10:39 普拉多VX 阅读(1606) 评论(0) 推荐(0) 编辑
摘要: 关于nginx配置webpy应用出现的错误upstream timed out (110: Connection timed out) while reading response header from upstream, client: 192.168.6.141, server: localh... 阅读全文
posted @ 2014-11-11 14:08 普拉多VX 阅读(608) 评论(0) 推荐(0) 编辑
摘要: 1.准备环境CentOs 6.3nginx-1.4.2.tar.gz http://nginx.org/download/nginx-1.4.2.tar.gzopenssl-1.0.1c.tar.gz http://www.openssl.org/source/openssl-1.0.... 阅读全文
posted @ 2014-11-11 13:29 普拉多VX 阅读(2228) 评论(0) 推荐(0) 编辑