Je pratique Python avec le livre intitulé Learn "Python The Hard Way 3ème édition". J'ai cherché que ce livre est une bonne ressource pour commencer.Quel est le problème avec ici? Python2 -> Python3
from sys import argv
script, first, second, third = argv
print('The script is called: '+ script)
print ('Your first variable is: '+ first)
print ('Your second variable is: '+ second)
print ('Your third variable is: '+ third)
Et j'ai eu une erreur disant que value error: not enough values to unpack (expected 4, got 1)
.
pouvez-vous donner plus d'exemples à ce sujet? –
@OliverBird sûr: '$ python myscript.py un deux trois ' – Mureinik
Merci. J'ai eu mes résultats! –