Feb-17-2024, 12:29 PM
For something this simple you can use sys.argv
import sys print(sys.argv)
Output:> python test.py "D:\tools\input data.txt" 65656
['test.py', 'D:\\tools\\input data.txt', '65656']
Notice that 65656 is a str, not a number.