- 浏览: 1446676 次
- 性别:
- 来自: 北京
文章分类
- 全部博客 (691)
- linux (207)
- shell (33)
- java (42)
- 其他 (22)
- javascript (33)
- cloud (16)
- python (33)
- c (48)
- sql (12)
- 工具 (6)
- 缓存 (16)
- ubuntu (7)
- perl (3)
- lua (2)
- 超级有用 (2)
- 服务器 (2)
- mac (22)
- nginx (34)
- php (2)
- 内核 (2)
- gdb (13)
- ICTCLAS (2)
- mac android (0)
- unix (1)
- android (1)
- vim (1)
- epoll (1)
- ios (21)
- mysql (3)
- systemtap (1)
- 算法 (2)
- 汇编 (2)
- arm (3)
- 我的数据结构 (8)
- websocket (12)
- hadoop (5)
- thrift (2)
- hbase (1)
- graphviz (1)
- redis (1)
- raspberry (2)
- qemu (31)
- opencv (4)
- socket (1)
- opengl (1)
- ibeacons (1)
- emacs (6)
- openstack (24)
- docker (1)
- webrtc (11)
- angularjs (2)
- neutron (23)
- jslinux (18)
- 网络 (13)
- tap (9)
- tensorflow (8)
- nlu (4)
- asm.js (5)
- sip (3)
- xl2tp (5)
- conda (1)
- emscripten (6)
- ffmpeg (10)
- srt (1)
- wasm (5)
- bert (3)
- kaldi (4)
- 知识图谱 (1)
最新评论
-
wahahachuang8:
我喜欢代码简洁易读,服务稳定的推送服务,前段时间研究了一下go ...
websocket的helloworld -
q114687576:
http://www.blue-zero.com/WebSoc ...
websocket的helloworld -
zhaoyanzimm:
感谢您的分享,给我提供了很大的帮助,在使用过程中发现了一个问题 ...
nginx的helloworld模块的helloworld -
haoningabc:
leebyte 写道太NB了,期待早日用上Killinux!么 ...
qemu+emacs+gdb调试内核 -
leebyte:
太NB了,期待早日用上Killinux!
qemu+emacs+gdb调试内核
d={'a':'bcd','b':113,'c':['hah','kk']}
del d[2]
d.clear()
d.keys()
d.values()
d.items()
params.values()[n] == params[params.keys()[n]] ,字典无序输出有序
";".join(["%s=%s" % (k, v) for k, v in params.items()])
---------------
li[-1],li[1:3],li[1:-2],li[1:],li[:],li.append("new"),li.insert(2, "new"),
li.extend(["two", "elements"]),len(li) ,li.index("example"),"c" in li--False,
li.remove("z")--只删一个,li.pop()--还返回值,li += ['two'],li = [1, 2] * 3 ,
li = [elem*2 for elem in li],
anystring.split(delimiter, 1)---第二个参数是分割的次数
---------
(x, y, z) = v
(MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY, SUNDAY) = range(7)
print range.__doc__
"%s=%s" % (k, v)
-------apihelper.py-----------自省---反射?----可以做个自动提示功能-
-------------------------type、str、dir----
type(apihelper) == types.ModuleType
callable(string.punctuation),callable(string.join)
getattr(li, "append")("Moe")
del d[2]
d.clear()
d.keys()
d.values()
d.items()
params.values()[n] == params[params.keys()[n]] ,字典无序输出有序
";".join(["%s=%s" % (k, v) for k, v in params.items()])
---------------
li[-1],li[1:3],li[1:-2],li[1:],li[:],li.append("new"),li.insert(2, "new"),
li.extend(["two", "elements"]),len(li) ,li.index("example"),"c" in li--False,
li.remove("z")--只删一个,li.pop()--还返回值,li += ['two'],li = [1, 2] * 3 ,
li = [elem*2 for elem in li],
anystring.split(delimiter, 1)---第二个参数是分割的次数
---------
(x, y, z) = v
(MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY, SUNDAY) = range(7)
print range.__doc__
"%s=%s" % (k, v)
-------apihelper.py-----------自省---反射?----可以做个自动提示功能-
def info(object, spacing=10, collapse=1): """Print methods and doc strings.Takes module, class, list, dictionary, or string.""" methodList = [method for method in dir(object) if callable(getattr(object, method))] processFunc = collapse and (lambda s: " ".join(s.split())) or (lambda s: s) print "\n".join(["%s %s" %(method.ljust(spacing),processFunc(str(getattr(object, method).__doc__))) for method in methodList]) if __name__ == "__main__": print info.__doc__
-------------------------type、str、dir----
type(apihelper) == types.ModuleType
callable(string.punctuation),callable(string.join)
getattr(li, "append")("Moe")
发表评论
-
scrapy的helloworld
2014-12-01 16:02 842http://scrapy.org/ 安装python vi ... -
tornado和telegraphy的helloworld
2014-11-11 14:09 831参考 http://www.tornadoweb.cn/ t ... -
autobahn的helloworld
2014-11-08 18:36 2720python2.7.8可用,python2.6一样的代码就有问 ... -
python2.7 vlrtualenv
2014-09-20 22:57 943如果是2.6用这个,最好用2.7, virtualenv ht ... -
redis验证
2014-02-27 16:32 1802去randomkey #!/usr/bin/python2 ... -
python的udp的socket
2011-12-07 00:11 1220apple:udp apple$ cat UDPClient. ... -
python发邮件
2011-11-18 16:12 952代码要最简化 import datetime impor ... -
转 让Django支持数据库长连接
2011-11-16 00:18 986http://www.cnblogs.com/Alexande ... -
解决“No module named django.core”
2011-09-07 18:22 6284反复的删除django和重装就会有这个问题 bogon:~ ... -
找到python的site-packages文件夹在哪
2011-09-06 17:55 5086python -c "from distutils. ... -
Textmate调试Python
2011-09-06 13:53 1856转http://phaibin.72pines.com/201 ... -
Django-1.3的helloworld7 快速复习
2011-08-31 00:25 1144败扯了,就是看遍http://djangobook.py3k. ... -
django+fcgi+nginx+memcache安装笔记
2011-06-16 10:25 2461资源: 1).ningge-dep-soft.tgz 2 ... -
python调用tt
2011-06-02 18:18 1373把附件图片的jpg改成pdf,为tt的电子书 -------- ... -
一道python的线程题?
2011-06-02 00:59 1491bestchenwu写得挺好地, http://bestche ... -
Django-1.3的helloworld6 fcgi nginx
2011-06-01 01:16 1620我写得很烂,还是看这个吧 http://djangobook. ... -
ubuntu django
2011-05-29 15:35 12651.从svn下载最新版本django: svn co http ... -
数据库反向生成django模块
2011-05-25 13:56 2020从原有数据库生成django http://djangoboo ... -
pycharm注册码
2011-05-20 00:31 9238哥欲善其事,必先利哥器 转载http://hi.baidu.c ... -
vim python
2011-05-18 22:03 1164现在见了空行就想dd 参考http://www.linux- ...
相关推荐
dive into python3 (中文版)dive into python3 (中文版)dive into python3 (中文版)
Dive into Python 中文版 Dive into Python 中文版
《深入Python 3》(Dive Into Python 3,英,)的的电子版,HTML格式
Dive into Python3 很不错哦,有中文的就更好了。
diveintopython源代码 很全
dive into python_代码_教程 dive into python_代码_教程
深入python,深入Python (Dive Into Python) 译者序 by limodou 主页(http://phprecord.126.com) Python论坛 本书英文名字为《Dive Into Python》,其发布遵守 GNU 的自由文档许可证(Free Document Lience)的...
dive into python的中文版,很不错的python教程
diveintopython3 书中源代码,非常好的一本书,极力推介,本人从中学到很多写代码的技巧
Dive Into Python 3 中文版.pdf 如果需要英文的也可以联系我
Dive Into Python 2 中文版 深入学习Python,需要学习Python基础知识
dive into python英文原版,Dive Into Python 3 covers Python 3 and its differences from Python 2. Compared to Dive Into Python, it’s about 20% revised and 80% new material. The book is now complete, ...
Dive Into Python 3 examples,随书示例代码包。
Didyoureadtheoriginal“DiveIntoPython”?Didyoubuyit onpaper?(Ifso,thanks!)AreyoureadytotaketheplungeintoPython3?…Ifso,readon.(Ifnoneofthat istrue,you’dbebetteroffstartingatthebeginning.) Python3...
dive into python 3 英文版,很好懂,用具体例子讲述Python语法和一些编程技巧
Dive Into Python 3 中文版
Dive Into Python 3 英文无水印pdf pdf所有页面使用FoxitReader和PDF-XChangeViewer测试都可以打开 本资源转载自网络,如有侵权,请联系上传者或csdn删除 本资源转载自网络,如有侵权,请联系上传者或csdn删除
《Dive Into Python》,带完整目录书签,经典文档,供参考。
Dive Into Python 是一份很知名的 Python 入门教程,由 Mark Pilgrim 编写,用户可以免费获取电子版本,而中文版则由啄木鸟社区翻译发布 [ 英文版 / 中文版 ] 。 前阵子,Mark Pilgrim 又发布了 《Dive into Python...