how to 'scanf' in python
Shaun Hogan
shogan at iel.ie
Tue Mar 21 06:16:32 EST 2000
More information about the Python-list mailing list
Tue Mar 21 06:16:32 EST 2000
- Previous message (by thread): how to 'scanf' in python
- Next message (by thread): Building Mac Python 1.5.2
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
ok lads, im trying to figure our how to 'scanf' in python, but the code
below isnt working properly, can anyone tell me what im doing wrong??
def rl():
line="how you doin"
import sys
line=sys.stdin.readline()
x, y = string.split(line[:-1])
x, y = int(x), int(y)
print x,y
=====================
Shaun Hogan
Interactive Enterprise Ltd.
alt. E-mail : shaun_hogan at yahoo.com
+353 86 8342529
- Previous message (by thread): how to 'scanf' in python
- Next message (by thread): Building Mac Python 1.5.2
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list