Python 字符串转换为变量

arr1=[1,2,3,4,5]


def fn1(num):
    strName='arr'+str(num)
    newArr=eval(strName)
    print(newArr)

fn1(1)