Код: Выделить всё
import sys
from awsglue.utils import getResolvedOptions
args = getResolvedOptions(sys.argv, [
'test-parameter'
])
value = args["test-parameter"]
print(f'value = {value}')
- Ключ: --test-parameter
- Значение: hello world
KeyError: 'test-parameter'
Как решить эту проблему?
Подробнее здесь: https://stackoverflow.com/questions/779 ... -parameter
Мобильная версия