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