On Sun, 2010-06-27 at 22:41 +0200, Laurent Verweijen wrote:
> In contrast to java or c python seems not be able to use a random
> delimiter.
>
> In java, you can do:
>
>
> Code:
>
> import java.util.Scanner
>
> Scanner sc = new Scanner(System.in).useSeperator(" ")
> int a = sc.nextInt()
>
>
In contrast to java or c python seems not be able to use a random
delimiter.
In java, you can do:
Code:
import java.util.Scanner
Scanner sc = new Scanner(System.in).useSeperator(" ")
int a = sc.nextInt()
But in python there seems to be no other option then waiting until you
see a newline.
I