Python Windows Program Development, Value Delivery

Asked 2 years ago, Updated 2 years ago, 15 views

-Window program Making- ==test.py== import os

When you run test.py, you end up running ex2.py. But when I run ex2.py here, I want to pass the variable. What should I do at times like this?<

So I want to use variables on ex2.py (like GET or POST in HTML)

python

2022-09-21 18:23

2 Answers

You can receive parameters when you run the command.

See sys.argv.


2022-09-21 18:23

Thank you. I solved it.


2022-09-21 18:23

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.