目录引言一、基础返回方法1.1 使用元组返回多个值1.2 使用列表返回多个值1.3 使用字典返回多个值二、高级返回技术2.1 使用命名元组(NamedTuple)2.2 使用数据类(Data Class)2.3 使用自定义类三、实战应用场景3.1
This question already has answers here: Getting the name of a variable as a string (31 answers) Closed 2 months ago.