自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(4)
  • 收藏
  • 关注

转载 列表中多个字典进行排序

列表中多个字典排序 >>>t = [{'a':1,'b':2},{'b':3,'a':5}] >>>t.sort(key=operator.itemgetter(’b‘),reverse=True)  #默认为升序, reverse=True为降序 >>>print t

2017-03-28 17:53:45 2022

转载 python staticmethod

@staticmethod: python中的staticmethod 主要是方便将外部函数集成到类体中,美化代码结构,重点在不需要类实例化的情况下调用方法 1)先看看不使用staticmethod的代码如何写的     2)再看看使用staticmethod的代码,用staticmethod包装的方法可以内部调用,也可以通过类访问或类实例化访问

2017-03-28 10:19:43 1220

转载 git pull时报错fatal: Could not read from remote repository.

git pull 时 报错如下信息: ssh: Could not resolve hostname https: nodename nor servname provided, or not known fatal: Could not read from remote repository. Please make sure you have the correct access

2017-03-08 17:29:29 1043

原创 微信前端工具安装

先cd进入media/web, 再 ln -s ~/git/media/node_modules/ node_modules,最后运行grunt, 如果不可以的话bower install, 再grunt,加入一个包文件: bower_components. 第一步,全局安装 node.js: sudo apt-get install nodejs 第二步,安装npm:sudo apt-ge...

2017-03-08 09:55:17 341

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除