lire valeur sous le shell

lire valeur sous le shell - Python - Programmation

Marsh Posté le 08-05-2008 à 12:08:58    

salut,
 
je débute en python...
je souhaiterais pouvoir intereagir avec le shell à partir d'un script:
demadner à l'utilisateur de saisir une valeur dans le shell et la récupérer pour
la stocker dans une variable  
 
Merci

Reply

Marsh Posté le 08-05-2008 à 12:08:58   

Reply

Marsh Posté le 08-05-2008 à 12:57:35    

http://docs.python.org/dev/library [...] #raw_input


---------------
I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box, and replicate and expand beyond their wildest dreams by throwing away the limits imposed by overbearing genetic r
Reply

Marsh Posté le 08-05-2008 à 14:51:25    

ok merci, et pour pouvoir écrire sur le shell à partir d'un script .py ?

Reply

Marsh Posté le 08-05-2008 à 15:00:10    

Tu as lu le Python Tutorial?
 
Parce que tu n'en as pas l'air, et si tu ne l'as effectivement pas fait je te suggère très fortement de te lancer.


---------------
I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box, and replicate and expand beyond their wildest dreams by throwing away the limits imposed by overbearing genetic r
Reply

Marsh Posté le 08-05-2008 à 17:38:26    

formidable je voulais justement devenir un crack en python, merci beaucoup !

Reply

Sujets relatifs:

Leave a Replay

Make sure you enter the(*)required information where indicate.HTML code is not allowed