「リストの添え字アクセス」とλ式

def day_of_week_str( dow ):
    return( ["","","","","","",""][dow] )

day_of_week_str = lambda dow: ["","","","","","",""][dow]

SoftEng: Python/Prog/Practice/Basic/02/BP_004a/AdvancedTopics (last edited 2018-10-28 15:44:38 by TadashiIijima)