問題:
I'd like to know if I can get the first element of a list or set.我想知道我是否可以獲得列表或集合的第一個元素。 Which method to use?使用哪種方法?
解決方案:
參考一: https://stackoom.com/question/bGgp參考二: How to get the first element of the List or Set? [duplicate]
I'd like to know if I can get the first element of a list or set.我想知道我是否可以獲得列表或集合的第一個元素。 Which method to use?使用哪種方法?