This is a Python runtime question.

Asked 2 years ago, Updated 2 years ago, 19 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


© 2024 OneMinuteCode. All rights reserved.