2025-09-10:仓库迁移
This commit is contained in:
6
7.函数/4.从函数中返回多个值.py
Normal file
6
7.函数/4.从函数中返回多个值.py
Normal file
@@ -0,0 +1,6 @@
|
||||
|
||||
# 如果需要从函数中返回多个值,只需要返回一个元组即可
|
||||
def fun():
|
||||
return 1, 2, 3
|
||||
|
||||
a, b, c = fun()
|
Reference in New Issue
Block a user