Ayt. 2021-11-02 14:06 采纳率: 60%
浏览 35
已结题

anaconda关于列表的问题 救救孩子

img

img

  • 写回答

1条回答 默认 最新

  • PythonJavaC++go 2021-11-02 17:10
    关注
    
    # 1
    def select_second(L):
        if len(L) <= 1:
            return None
        return L[1]
    #2
    def losing_team_captain(teams):
        return teams[-1][1]
    
    #3 第三题缺失变量d
    lengths = [3, 2, 0]
    
    #4:
    
    def fashionably_late(arrivals, name):
        pos = arrivals.index(name) + 1
        if pos > len(arrivals)/2 and pos < len(arrivals):
            print("{} was fashinably late".format(name))
        else:
            print("{} was not fashinably late".format(name))
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

问题事件

  • 系统已结题 11月13日
  • 已采纳回答 11月5日
  • 创建了问题 11月2日