官术网_书友最值得收藏!

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:

主站蜘蛛池模板: 教育| 保德县| 平安县| 郑州市| 务川| 施秉县| 耒阳市| 常州市| 曲松县| 阜阳市| 临泽县| 许昌市| 曲沃县| 兴文县| 建瓯市| 安塞县| 舞阳县| 德钦县| 东乡县| 金昌市| 民和| 东方市| 滨海县| 青阳县| 洪江市| 岳普湖县| 石城县| 宣威市| 礼泉县| 宁武县| 瑞金市| 浦城县| 杨浦区| 长宁区| 肃南| 开江县| 青岛市| 建昌县| 涪陵区| 宜阳县| 梅河口市|