08 2017 档案
摘要:from collections import defaultdict import json def tree(): return defaultdict(tree) categories = tree() a = categories['Programming Languages']['Python'] b = categories['Programming Languag...
阅读全文
摘要:一、在提前加载js的地方写一段js,判断该页面是否需要添加ztree,我的项目所有提前加载的js都写在admin.js中 //增加ztree $(document).ready(function() { var t = $('#tree-style').text(); if(t.length>0){ $('#col').addClass('sevice-t...
阅读全文
摘要:#!/usr/bin/python # -*- coding: utf-8 -* from fabric.api import * from fabric.contrib.files import * ## 需要注意的是,这里的host strings必须由username@host:port三部分构成,缺一不可,否则运行时还是会要求输入密码 env.hosts = [ 'root@2...
阅读全文
摘要:1、先cd到根目录,执行git config --global credential.helper store命令 [root@iZ25mi9h7ayZ ~]# git config --global credential.helper store 2、执行之后会在.gitconfig文件中多加红色
阅读全文
摘要:fab -f test_fabric.py start --hide status,running,stdout,user,aborts,warnings,stderr 省略所有输出--hide stdout 省略脚本原本打印在屏幕上的内容,比如ls,echo的内容,都不会输出--hide runn
阅读全文