如何獲取List或Set的第一個元素? [複製] - How to get the first element of the List or Set? [duplicate]

問題:

This question already has answers here : 這個問題在這裏已經有了答案
Closed 2 years ago . 2年前關閉。

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]
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章