This is a Python runtime question.

Asked 1 weeks ago, Updated 1 weeks ago, 1 views

When running Python

py test.py abc

How do I store the value of abc in an internal variable in this way?

python

2022-09-20 11:32

1 Answers

import sys
sys.argv[1]

You can accept command line factors in .


2022-09-20 11:32

If you have any answers or tips


© 2022 pinfo. All rights reserved.