码迷,mamicode.com
首页 > 编程语言 > 详细

深入python

时间:2016-10-08 19:56:05      阅读:120      评论:0      收藏:0      [点我收藏+]

标签:

#http://old.sebug.net/paper/books/dive-into-python/html/index.html

1. 使用help寻求帮助

>>> help()

Welcome to Python 2.7!  This is the online help utility.

If this is your first time using Python, you should definitely check out
the tutorial on the Internet at http://docs.python.org/2.7/tutorial/.

Enter the name of any module, keyword, or topic to get help on writing
Python programs and using Python modules.  To quit this help utility and
return to the interpreter, just type "quit".

To get a list of available modules, keywords, or topics, type "modules",
"keywords", or "topics".  Each module also comes with a one-line summary
of what it does; to list the modules whose summaries contain a given word
such as "spam", type "modules spam".

在命令行环境,如果查看wave模块如何使用

需要 import wave; help(wave)

或者 help(‘wave‘)

深入python

标签:

原文地址:http://www.cnblogs.com/Citizen/p/5939730.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!