
python
文章平均质量分 76
spaceship20008
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
python 从字典里取出内容,创建集合 dict -> set
这是《python 编程实践》这本书,第九章,最后一道题,14题。稀疏向量(sparse vector)就是其元素几乎都为0的那种向量,比如[1,0,0,0,0,0,3,0,0,0] 如果将这些0 都保存到列表中实在是有些浪费存储内存。因此程序员常常会利用字典来保存其中的非零元素。比如说,刚才那个向量会写成{0:1, 6:3}, 这是因为, 该向量位置0处的值为1, 位置6 处的值为3.a原创 2012-12-09 16:12:18 · 1471 阅读 · 0 评论 -
vim 用指定编码保存文件
原帖地址:http://blog.youkuaiyun.com/dengxu11/article/details/6763765本文主要讲解下,让Vim能正确显示和保存各种编码文件的一些常用方法。Vim编码配置里面有3个选项,分别是encoding 、fileencodings、fileencoding 简写分别对应为enc、fencs、fenc。encoding(enc)转载 2013-01-06 03:32:48 · 763 阅读 · 0 评论 -
pyramid web framework
A web framework of pythonOperationing enviroment : A virtual OS of Archlinux of Python3.3what is it? http://docs.pylonsproject.org/projects/pyramid/en/latest/index.htmlhow to install htt原创 2013-01-25 03:27:09 · 621 阅读 · 0 评论 -
Raspberry Pi GPIO with Python (A WiringPi wrapper :D)
Raspberry Pi GPIO with Python (without root)While playing around with the raspberry pi I wanted to try out the GPIO function. I decided I wanted to use python to control the pins. I found several翻译 2013-01-05 00:27:15 · 3882 阅读 · 0 评论 -
webpy
hello world!http://webpy.org/Get Startedweb.py 0.37 is the latest released version of web.py. You can install it by running:sudo easy_install web.pyOr to get the latest development ve原创 2013-01-11 04:33:28 · 519 阅读 · 0 评论 -
Pyramid framework structure image
工作了一个凌晨制作完成的,有帮助于理解pyramid web framework structure必要的东西有注释。Hours of time were spent in the early morning after midnight on making this diagram. It's helpful to understand the structure of pyramid原创 2013-01-28 06:22:29 · 731 阅读 · 0 评论 -
pyramid web framework [note pieces] 模板引擎
pyramid.The default templates engine of Pyramid web framework is chameleno which is frustrating to read and write.And another guy in #pyramid called sontek suggested me to use mako http://原创 2013-01-28 03:25:33 · 981 阅读 · 0 评论 -
Python 网页编程- Pyramid 安装测试
http://docs.pylonsproject.org/projects/pyramid/en/1.4-branch/narr/install.html按照介绍操作。我用的是mint13, python 3.2.3版本。使用的是virtualenv 开发工具 在一个虚拟的python环境下开发web app这样很不错。请按照其步骤来。在p原创 2013-04-07 15:30:10 · 1552 阅读 · 0 评论 -
Creating a Pyramid Project [note of steps] pyramid框架入门研究笔记
It's from http://docs.pylonsproject.org/projects/pyramid/en/latest/narr/project.html#manifest-inScaffolds Included with Pyramid¶The included scaffolds are these:starterURL mapping via UR原创 2013-01-28 04:17:44 · 1615 阅读 · 0 评论 -
看python官方说明学python-list-列表
5. Data StructuresThis chapter describes some things you’ve learned about already in more detail, and adds some new things as well.5.1. More on ListsThe list data type has some more me原创 2012-12-19 01:02:28 · 1159 阅读 · 0 评论 -
看python官方说明学python-dict-字典
5.5. DictionariesAnother useful data type built into Python is the dictionary (see Mapping Types — dict). Dictionaries are sometimes found in other languages as “associative memories” or “associat原创 2012-12-19 00:02:36 · 500 阅读 · 0 评论 -
python面向对象编程
摘一段笔记:These passages come from a book named " A byte of Python"It's a open book which is very helpful when someone is learning python programming.Tip: if anyone wants to learn python very we原创 2012-12-24 04:48:05 · 576 阅读 · 0 评论 -
python面向对象编程-Class and Methods-<ThinkPython>
Chapter 17 Classes and methodsThe link of this chapter of the book ThinkPythonhttp://www.greenteapress.com/thinkpython/html/book018.html17.1 Object-oriented featuresPython is an obje转载 2012-12-24 05:29:23 · 964 阅读 · 0 评论 -
python面向对象编程__str__, __die__, __add__等
There are something i copied from :http://www.greenteapress.com/thinkpython/thinkCSpy/html/chap14.html这本书叫thinkpythonThese would be very helpful :D14.7 Points revisitedLet's rewrite转载 2012-12-24 05:30:10 · 1470 阅读 · 0 评论 -
看python官方说明学python-tuple元组
5.3. Tuples and SequencesWe saw that lists and strings have many common properties, such as indexing and slicing operations. They are two examples of sequence data types (see Sequence Types — li转载 2012-12-18 23:29:53 · 508 阅读 · 0 评论 -
python视频学习资料
http://pan.baidu.com/share/link?shareid=174534&uk=2064392841原创 2013-01-03 14:22:06 · 491 阅读 · 0 评论 -
看python官方说明学python-set-集合
5.4. SetsPython also includes a data type for sets. A set is an unordered collection with no duplicate elements. Basic uses include membership testing and eliminating duplicate entries. Set objects原创 2012-12-18 23:34:33 · 610 阅读 · 0 评论 -
看python官方说明学python-移位-bitewise
4.4.1. Bitwise Operations on Integer Types (数位操作)Bitwise operations only make sense for integers. Negative numbers are treated as their 2’s complement value (this assumes a sufficiently large numb原创 2012-12-21 02:03:06 · 1396 阅读 · 0 评论 -
看python官方说明学python-class-object-类、对象-之区域和名空间
9.2. Python Scopes and Namespaces¶Before introducing classes, I first have to tell you something about Python’s scope rules. Class definitions play some neat tricks with namespaces, and you need t原创 2012-12-21 04:36:01 · 720 阅读 · 0 评论 -
pyramid 照着这个来就行了开始 [早晨起来看)
youtube视频http://www.youtube.com/watch?v=L2KSsqwwH9M&list=PL6-GrNvaJuAhcBuzrL6UR-LhDbNkNhFwv这个人的博客:http://fosshelp.blogspot.inthe offical ariticle for creating a web application of pyramid : http:/原创 2013-04-07 20:52:01 · 930 阅读 · 1 评论