摘要: 1. 多返回值 返回值为return返回给上级函数的值,需要注意的是,与C和C++不同,Python中可以有多返回值。 多返回值 def test_return(): return 1,2 x, y = test_return() print(x) print(y) 特点: 按照返回值的顺序,写对应 阅读全文
posted @ 2024-07-14 21:14 Coder-Yun 阅读(12) 评论(0) 推荐(0)