2017年12月1日

Python 调试:step into/step out/step over 的区别

摘要: Python 调试:step into/step out/step over 的区别: 首先在PyCharm 程序中设置 “ 断点 ”,后点击右上角的Debug 按钮进入调试程序状态: step into:进入子函数。即为单步执行,遇到子函数就进入并且继续单步执行。step over:越过子函数,但 阅读全文

posted @ 2017-12-01 19:51 CuriousZero 阅读(3912) 评论(0) 推荐(0) 编辑

Python 函数的 return 是否是必须的?

摘要: —— Python 函数的 return 是否是必须的? —— return [表达式] 语句用于退出函数,选择性地向调用方返回一个表达式。不带参数值的return语句返回None。 来看一段关于 return 的描述: return may only occur syntactically nes 阅读全文

posted @ 2017-12-01 19:38 CuriousZero 阅读(2518) 评论(0) 推荐(0) 编辑

导航