fork(1) download
  1. import sys, re
  2. for line in sys.stdin:
  3. print(list(map(int, line[1:-1].split())))
  4. print(list(map(int, re.findall(r'\d+', line))))
Success #stdin #stdout 0.02s 9616KB
stdin
[23 45 6]
stdout
[23, 45, 6]
[23, 45, 6]