摘要: 字段操作记录: 阅读全文
posted @ 2018-01-11 17:38 JahanGu 阅读(481) 评论(0) 推荐(0) 编辑
摘要: FastCGI sent in stderr: "PHP message: PHP Fatal error: Cannot use 'Object' as class name as it is reserved in /home/leo/htdocs/oa/vendor/yiisoft/yii2/ 阅读全文
posted @ 2018-01-02 13:02 JahanGu 阅读(2200) 评论(0) 推荐(0) 编辑
摘要: 1.下载地址:https://github.com/PHPOffice/PHPExcel 2.解压并修改文件名为phpexcel 之后在yii项目的vendor目录下创建一个文件夹命名为phpoffice 把phpexcel文件放到phpoffic文件夹下 此时查看vendor\phpoffice\ 阅读全文
posted @ 2017-12-14 17:56 JahanGu 阅读(3202) 评论(0) 推荐(0) 编辑
摘要: 1、首先从官网下载yii2-imagine的拓展 下载地址:https://github.com/yiisoft/yii2-imagine 下载包名称:yii2-imagine-master 2、然后再下载imagine的插件包 下载地址:https://github.com/avalanche12 阅读全文
posted @ 2017-12-14 17:06 JahanGu 阅读(1359) 评论(0) 推荐(0) 编辑
摘要: 先安装相关依赖包 yum install pcre pcre-devel zlib zlib-devel openssl openssl-devel gd gd-devel libjpeg libjpeg-devel libpng libpng-devel freetype freetype-dev 阅读全文
posted @ 2017-11-29 13:34 JahanGu 阅读(3283) 评论(0) 推荐(0) 编辑
摘要: #!/bin/bash CURRDIR=`dirname "$0"` BASEDIR=`cd "$CURRDIR"; pwd` NAME="nginx" CMD=/usr/local/nginx/sbin/nginx if [ "$1" = "-d" ]; then shift EXECUTEDIR=$1'/' shift else EXECUTEDIR=$... 阅读全文
posted @ 2017-10-27 16:49 JahanGu 阅读(372) 评论(0) 推荐(0) 编辑
摘要: Python list内置sort()方法用来排序,也可以用python内置的全局sorted()方法来对可迭代的序列排序生成新的序列 一,最简单的排序 1.使用sort排序 使用sort()方法对list排序会修改list本身,不会返回新list,通常此方法不如sorted()方便,但是如果你不需 阅读全文
posted @ 2017-10-11 13:30 JahanGu 阅读(31321) 评论(1) 推荐(4) 编辑
摘要: 1、安装 python3版本直接执行pip install ipdb命令安装 python2.7版本的需要指定ipdb的版本 pip install ipdb==0.10.2 等号后面的就是版本,因为 pip install ipdb默认安装的是最新版本,现在的ipdb需要python3的支持 所以 阅读全文
posted @ 2017-09-26 14:15 JahanGu 阅读(5169) 评论(0) 推荐(0) 编辑
摘要: class Myclass(object): def __init__(self): pass #必须实例化才能调用 def sayhi(self): print 'hello' #静态方法,跟类没什么关系,不需要实例化即可调用,类的工具包 @staticmethod def sayhi2(self): ... 阅读全文
posted @ 2017-09-06 11:22 JahanGu 阅读(390) 评论(0) 推荐(0) 编辑
摘要: 新式类:class Myclass(object): pass 经典类:class Myclass: pass 新式类里面加了一些新方法,例如重写父类: class A(object): def __init__(self,name,age,sex): self.name = name self.a 阅读全文
posted @ 2017-09-06 11:20 JahanGu 阅读(257) 评论(0) 推荐(0) 编辑