StupidBeauty
Read times:380Posted at:Tue May 15 05:44:33 2018 - no title specified

Ruby练习:取数组中的头几个元素所组成的数组

写一段Ruby代码,取出以下代码中的df这个数组中头10个元素所组成的数组,并将它输出出来。

#!/usr/bin/env ruby

df = [ 1, "two", 3.0, 4, "five", 6.0, 7, "eight", 9.0, 10, "eleven", 12.0, 13, "fourteen", 15.0 ]

print("\n")

print(df)

print ( "\n" )

Your opinions
Posted at:Tue May 15 06:54:40 2018Chen Guanxi#/usr/bin/ruby text = [ 1, "two", 3.0, 4, "five", 6.0, 7, "eight", 9.0, 10,] print text
Your name:Email:Website url:Opinion content:
- no title specified

女神相机:在女神不知情的情况下,为她拍出最自然的玉照

 
??Like this article? Give us some tips.??