- Mastering Python Scripting for System Administrators
- Ganesh Sanjiv Naik
- 51字
- 2021-07-02 14:00:26
Command-line arguments in Python
We can start a program with additional arguments, in the command line. Python programs can start with command-line arguments. Let's look at an example:
$ python program_name.py img.jpg
Here, program_name.py and img.jpg are arguments.
Now, we are going to use modules to get the arguments:

推薦閱讀
- 數據科學實戰手冊(R+Python)
- Mastering OpenCV Android Application Programming
- Apache Spark Graph Processing
- 新編Premiere Pro CC從入門到精通
- Learning Apache Kafka(Second Edition)
- Mastering Python Networking
- 軟件測試技術指南
- Julia高性能科學計算(第2版)
- Android Wear Projects
- Android驅動開發權威指南
- 現代C:概念剖析和編程實踐
- UI設計基礎培訓教程(全彩版)
- SQL Server 2012 數據庫應用教程(第3版)
- 數字媒體技術概論
- 創新工場講AI課:從知識到實踐