- 博客(11)
- 资源 (72)
- 收藏
- 关注
转载 matplotlib刻度
点击打开链接#!/usr/bin/env python #-*- coding: utf-8 -*- #--------------------------------------------------- #演示MatPlotLib中设置坐标轴主刻度标签和次刻度标签. #对于次刻度显示,如果要使用默认设置只要matplotlib.pyplot.minorticks_on()
2012-04-09 18:30:04
2568
原创 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
431
原创 get mac地址
import uuid print uuid.getnode() sMac = hex(uuid.getnode()) print 'smac=',sMac #Mac address here
2012-04-07 10:48:54
411
原创 py2exe example
from distutils.core import setup import py2exe includes = ["encodings", "encodings.*"] options = {"py2exe": { "compressed": 1, "optimize": 2, "inclu
2012-03-30 15:04:50
302
原创 matplotlib 中文
# -*- coding: utf-8 -*- """ You can explicitly set which font family is picked up for a given font style (eg 'serif', 'sans-serif', or 'monospace'). In the example below, we only allow one font
2012-03-24 08:40:01
1055
原创 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.html This re
2012-03-23 11:41:55
496
原创 matplotlib 打包exe error
D:\workspace\fma_td\src\fma\library.zip\matplotlib\__init__.py:908: UserWarning: This call to matplotlib.use() has no effect because the the backend has already been chosen; matplotlib.use() must be
2012-03-22 10:54:27
1027
1
原创 用pylint检查代码
''' Created on 2012-3-13 @author: brian ''' import os import shutil def 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
558
原创 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
1929
Python Excel How to copy a style from one cell and put it on another
2012-04-18
Reference is not valid while using hyperlinks on excel files in windows
2012-04-20
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关注的人