Python programozás - Szoftverfejlesztés fórum

üzenetek

hozzászólások


nicknev
(csendes tag)

Na megint nekem van problémám :DDD
Zed A. Shaw Learn Python The Hard Way, 2nd Edition könyvét olvasom, 13-ik leckénél tartok, és elakadtam.A következő kódot hiába csinálom meg rendesen nem működik (Azt írja ki a piton, hogy
File "C:\Users\valami\Desktop\cucc\ex13.py", line 3, in <module>
script, first, second, third = argv
ValueError: need more than 1 value to unpack

A script pedig ez lenne:
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

Mi lehet baja?
Win7et használok, és 2.7-es pythont
Köszi a segítséget előre is :)

[ Szerkesztve ]

üzenetek