fork download
  1. import array
  2. my_array = array.array('i', [1, 2, 3, 4]) # 'i' 表示整數型態
  3. print(my_array[0])
Success #stdin #stdout 0.03s 9072KB
stdin
Standard input is empty
stdout
1