构建能返回多个值的函数
def myfun():
return 1, 2, 3
a, b, c = myfun()
print(a) # 1
print(b) # 2
print(c) # 3
2.01MB
文件大小:
评论区