5.3 - Return Statements
来源:互联网 发布:软件培训班哪个好学 编辑:程序博客网 时间:2024/06/05 09:50
def sum(value1, value2): result = value1 + value2 return result my_result = sum(4, 7) # when selecting and excuting only the function part , the return value will be shown on screenprint(my_result)def sum(value1, value2): # if the ruture value is not defined, it will return a none object result = value1 + value2 my_result = sum(4, 7) # my_result is None. when selecting and excuting only the function part , nothing will be shown on screenprint(my_result)
0 0
- 5.3 - Return Statements
- 12.3.3.12 Return statements
- Can functions be defined below return statements
- Return
- return
- return
- return
- return
- return
- return
- return
- Return
- return
- return
- return
- return
- return
- return
- java中的栈 Staack
- 如何安装windows和linux双系统
- 记录一个PullToRefreshListView的bug 不显示
- Linux的less命令使用
- JAVA基础课总结八
- 5.3 - Return Statements
- 马毅与来自高维度的恩赐
- hihocoder 2015ACM-ICPC 北京赛区 Problem A. Xiongnu's Land
- python之自定义爬虫脚本
- windows下更新环境变量不需要重启系统快速生效的方法(原理篇)
- C#常用 API函数大全
- MFC程序入口分析
- activity的生命周期
- JAVA基础课总结九