Discuss / Python / 函数要点

函数要点

Topic source

1.提前做好类型检查: 使用isinstanceof()
2.return = return None

3.return多个值的话, 实际上是返回一个tuple


  • 1

Reply