Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
3417 connectés 

  FORUM HardWare.fr
  Programmation
  Python

  lire valeur sous le shell

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

lire valeur sous le shell

n°1729897
weblook$$
Posté le 08-05-2008 à 12:08:58  profilanswer
 

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

mood
Publicité
Posté le 08-05-2008 à 12:08:58  profilanswer
 

n°1729911
masklinn
í dag viðrar vel til loftárása
Posté le 08-05-2008 à 12:57:35  profilanswer
 

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 by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing?
n°1729936
weblook$$
Posté le 08-05-2008 à 14:51:25  profilanswer
 

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

n°1729944
masklinn
í dag viðrar vel til loftárása
Posté le 08-05-2008 à 15:00:10  profilanswer
 

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 by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing?
n°1729980
weblook$$
Posté le 08-05-2008 à 17:38:26  profilanswer
 

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


Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Programmation
  Python

  lire valeur sous le shell

 

Sujets relatifs
Extraire une seule valeur d'une fonction retournant un vecteurscript linux qui permet de vérifier une valeur dans un fichier .conf
Lire un fichier texte en J2MEmal ou pas pas bien : lire des vidéos via fpassthru()
Passer une valeur dans le liens!? GET ou POST? [RESOLUS][C] lire un fichier......mon dieu aidez moi !!
[Trouve] Formule auto : affectation valeur cellule en "dur"Comment faire un passage par valeur correct ?
Comment lire une image d'un fichier en C++Problème erreur if
Plus de sujets relatifs à : lire valeur sous le shell


Copyright © 1997-2025 Groupe LDLC (Signaler un contenu illicite / Données personnelles)