def函数之另类用法

#python 27
#xiaodeng

def list_opts():
    return [
        ('name', 'xiaodeng'),
        ('age', 28),
        ('sex', '1'),
        ('where', 'enshi')
            ]

print list_opts()#[('name', 'xiaodeng'), ('age', 28), ('sex', '1'), ('where', 'enshi')]
原文地址:https://www.cnblogs.com/dengyg200891/p/4943655.html