3条回答 默认 最新
- CSDN专家-showbo 2021-11-02 14:10关注
def select_second(L): if len(L)>1: return L[1] return None print(select_second([1,2])) print(select_second([1]))
本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报
def select_second(L):
if len(L)>1:
return L[1]
return None
print(select_second([1,2]))
print(select_second([1]))