Hi,
Trying to understand this piece of code. Would appreciate any help
thanks
Trying to understand this piece of code. Would appreciate any help
job_args = dict() if args.job_args: job_args_tuples = [arg_str.split('=') for arg_str in args.job_args] job_args = {a[0]: a[1] for a in job_args_tuples}So in the first line, we create a dictionary of job_args. Can someone please explain line 3 and 4?
thanks
buran write Apr-11-2021, 07:25 PM:
Please, use proper tags when post code, traceback, output, etc. This time I have added tags for you.
See BBcode help for more info.
Please, use proper tags when post code, traceback, output, etc. This time I have added tags for you.
See BBcode help for more info.