Mình đang học cuốn LPTHW nhưng mình gặp vấn đề :
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)
Nhưng chạy lại báo lỗi như này :
Traceback (most recent call last):
File “exp13.py”, line 4, in
script, first, second, third = argv
ValueError: not enough values to unpack (expected 4, got 1)
Mình đã lên google search tìm nhưng k tìm được lỗi ( mình học cuốn LPTHW là python2x mà máy mình chạy python3x )