A literal array is created by putting square
brackets around a comma-separated list of elements
eg:
# ["zero" , "un" , "dos" , "tre" ] a = ['zero' , 'un' , 'dos' , 'tre' ] # 4 a.length # 4 a.size # "zero" a[0] # ["un" , "dos" , "tre" ] a[1..3]
A literal array is created by putting square
brackets around a comma-separated list of elements
eg:
# ["zero" , "un" , "dos" , "tre" ] a = ['zero' , 'un' , 'dos' , 'tre' ] # 4 a.length # 4 a.size # "zero" a[0] # ["un" , "dos" , "tre" ] a[1..3]
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M