beginning python summary chapter 6 - 抽象
2010-02-24 17:04
246 查看
1、使用def定义函数
2、函数文档:在函数的开头写下字符串,它就会作为函数的一部分进行存储,称为"文档字符串"。
内建的叫做help的函数非常有用,如果你在交互式解释器中使用,你可以得到函数以及它的文档字符串的信息:eg:>>>help(函数名)
3、Python内有些函数并不返回任何东西,这类函数没有return语句,或者他们有return语句但是在后面没有任何单词
4、参数
2、函数文档:在函数的开头写下字符串,它就会作为函数的一部分进行存储,称为"文档字符串"。
内建的叫做help的函数非常有用,如果你在交互式解释器中使用,你可以得到函数以及它的文档字符串的信息:eg:>>>help(函数名)
3、Python内有些函数并不返回任何东西,这类函数没有return语句,或者他们有return语句但是在后面没有任何单词
4、参数
相关文章推荐
- beginning python summary chapter 3 - 使用字符串
- beginning python summary chapter 5 - 条件,循环和其他语句
- beginning python summary chapter 4 - 字典
- beginning python summary chapter 2 - 列表和元组
- Beginning Python Chapter 26
- Beginning Python Chapter 28
- Beginning Python Chapter 1 Notes
- 【Beginning Python】抽象(未完)
- Beginning Python Chapter 21
- Beginning Python Chapter 22
- Beginning Python Chapter 25
- Beginning Python Chapter 27
- Beginning Python Chapter 26
- Beginning Python Chapter 28
- Beginning Python Chapter 3 Notes
- python运维__fifth_chapter(5)--xml.etree.Elementtree 读取XML文档
- Debuggers and Debugger Design(Chapter 2 of Gray Hat Python)
- 学习 | Python之高抽象的编程范式(1)——高阶函数
- “Beginning Python”(八)“XML”
- 读书笔记[Android Beginning 2] chapter 2 Create a Skeleton Application