def func(argv): dic = {} for i in range(len(argv)): dic[i] = argv[i] return dic print(func([11,22,33,44])) for循环配合range()获取索引