从以下数组中,我如何获得所述的输出
arr=["harry","sally","tom"]
harry
harry
harry
sally
sally
tom
sally
sally
sally
tom
tom
harry
tom
tom
tom
harry
harry
sally
我试过什么
>>> for i in range(len(arr)):
... print arr[i] * 3
... print arr[i+1]*2
... print arr[i-1]
...
Traceback (most recent call last):
File "<stdin>", line 3, in <module>
IndexError: list index out of range