- 博客(11)
- 资源 (72)
- 收藏
- 关注
转载 matplotlib刻度
点击打开链接#!/usr/bin/env python#-*- coding: utf-8 -*- #---------------------------------------------------#演示MatPlotLib中设置坐标轴主刻度标签和次刻度标签.#对于次刻度显示,如果要使用默认设置只要matplotlib.pyplot.minorticks_on()
2012-04-09 18:30:04 2512
原创 bad file decriptor
f = file('test','rb') fout = file('test.out','wb') #fout = file('test.out','w+b') for i in range(10): a = f.read(1) fout.write(a) f.close() f = fout f.seek(4) print f.read(4)
2012-04-09 11:27:39 365
原创 get mac地址
import uuidprint uuid.getnode()sMac = hex(uuid.getnode())print 'smac=',sMac #Mac address here
2012-04-07 10:48:54 328
原创 py2exe example
from distutils.core import setupimport py2exeincludes = ["encodings", "encodings.*"]options = {"py2exe": { "compressed": 1, "optimize": 2, "inclu
2012-03-30 15:04:50 254
原创 matplotlib 中文
# -*- coding: utf-8 -*-"""You can explicitly set which font family is picked up for a given fontstyle (eg 'serif', 'sans-serif', or 'monospace').In the example below, we only allow one font
2012-03-24 08:40:01 997
原创 python get registry infomation
MRAB schrieb:> Jorge wrote:>> I need to know how to get the hardware serial number of a hard disk in >> python.>>> For Windows, see http://www.daniweb.com/forums/thread187326.htmlThis re
2012-03-23 11:41:55 452
原创 matplotlib 打包exe error
D:\workspace\fma_td\src\fma\library.zip\matplotlib\__init__.py:908: UserWarning: This call to matplotlib.use() has no effectbecause the the backend has already been chosen;matplotlib.use() must be
2012-03-22 10:54:27 965 1
原创 用pylint检查代码
'''Created on 2012-3-13@author: brian'''import osimport shutildef excute_pylint_cmd(file_path): pylint_cmd = "pylint \"%s\" --files-output=y --output-format=html --include-ids=y" % file
2012-03-15 11:52:45 496
原创 python删除只读文件
def rm_read_only(fn, tmp, info): if os.path.isfile(tmp): os.chmod(tmp, stat.S_IWRITE) os.remove(tmp) elif os.path.isdir(tmp): os.chmod(tmp, stat.S_IWRITE) shuti
2012-02-22 17:29:59 1807
Reference is not valid while using hyperlinks on excel files in windows
2012-04-20
Python Excel How to copy a style from one cell and put it on another
2012-04-18
wxPython-users - wx_DateTime - Python datetime
2012-05-23
11_13_ sqlite3 — DB-API 2_0 interface for SQLite
2012-04-27
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人