_----by William Ernest Henley__Out of the night that covers me,__Black as the pit from pole to pole,__I thank whatever gods may be__For my unconquerable soul.__In the fell clutch of circumstance__I have not winced nor cried aloud.__Under the bludgeonings of chance__My head is bloody, but unbowed.__Beyond this place of wrath and tears__Looms but the Horror of the shade,__And yet the menace of the years__Finds and shall find me unafraid.__It matters not how strait the gate,__How charged with punishments the scroll,__I am the master of my fate:__I am the captain of my soul._
VTK+VS10(64bitWin7)安装配置
发表于
|
更新于
|
分类于
c/cpp
1.下载:**vtk-5.10.1.zip**源程序**vtkdata-5.10.1.zip** 数据(vtk相关安装程序下载:http://vtk.org)**cmake-2.8.2-win32-x86.zip**(cmake程序下载:[http://www.cmake.org/HTML/Index.html](http://www.cmake.org/HTML/Index.html))
wxPython学习笔记
发表于
|
更新于
|
分类于
python
1.下载,安装wxPython。注意应该选择与本机上python相同的版本。
地址:[http://www.wxpython.org/download.php#stable](http://www.wxpython.org/download.php#stable)
tiny bug
发表于
|
更新于
|
分类于
python
写csv的时候随便起了个名字,然后贴代码,出现下面的错误:
Traceback (most recent call last): File "D:\workspace\PyTest\csvTest\csv.py", line 1, in <module> import csv File "D:\workspace\PyTest\csvTest\csv.py", line 3, in <module> writer = csv.writer(file('your.csv', 'wb')) AttributeError: 'module' object has no attribute 'writer'
显然是import问题,可是csv模块是python本身集成的。google之,原来是文件名的问题。
随手把文件名起了csv.py,所以成了自身import自身

python中的除法
发表于
|
更新于
|
分类于
python
传统除法
如果是整数除法则执行地板除,如果是浮点数除法则执行精确除法。
>>>1/2 0 >>>1.0/2.0 0.5
精确除法
除法总是会返回真实的商,不管操作数是整形还是浮点型。执行from future import division 指令就可以做到这一点。
>>>from __future__ import division >>>1/2 0.5 >>>1.0/2.0 0.5
python安装第三方包时setuptools错误解决方法
发表于
|
更新于
|
分类于
python
安装openpyxl遇到下面的错误:
ImportError: No module named setuptools此种情况只要安装下setuptools模块即可 1.官方下载[https://pypi.python.org/pypi/setuptools/0.9.8](https://pypi.python.org/pypi/setuptools/0.9.8) 2.安装模块
C:\setuptools-0.9.8>python setup.py install3.继续安装openpyxl能够顺利进行
C:\openpyxl-1.6.2>python setup.py install running install running bdist_egg