2014-03-12 34 views

回答

3

我們可以在lists模塊中使用nth方法。

1> A = [1, 2, 3]. 
[1,2,3] 
2> lists:nth(2, A). 
2 

注意:該指數並非從零開始。

相關問題