55

教你玩转Python函数和变量-红扑扑的酸柠檬博客

 6 years ago
source link: http://blog.51cto.com/13043937/2106686
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
什么是函数?一个程序可以包含多个模块,程序越复杂,包含的模块和功能就越多,模块细分里面包含多个类,类这个概念在任何一门面向对象语言里面都很重要,在类里面最主要的就是包含的函数,函数式实现某一个功能的代码体,函数对代码最基本的一个封装。所以多个函数构成一个类,多个类构成一个模块,多个模块构成一个程序。主函数,整个程序的一个入口如:def add(num01,num02):return&nb

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK