fork download
  1. # um espaço a mais no final faz diferença
  2.  
  3. print('1 2 '.split(' ')) # ['1', '2', '']
  4.  
  5. print('1 2'.split(' ')) # ['1', '2']
  6.  
Success #stdin #stdout 0.02s 9232KB
stdin
Standard input is empty
stdout
['1', '2', '']
['1', '2']