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

Getting started

All libraries used in this script are present in Python's standard library. While there are other argument-handling libraries available, such as optparse and ConfigParser, our scripts will leverage argparse as our de facto command-line handler. While optparse was the library to use in prior versions of Python, argparse has served as the replacement for creating argument handling code. The ConfigParser library parses arguments from a configuration file instead of the command line. This is useful for code that requires a large number of arguments or has a significant number of options. We will not cover ConfigParser in this book, though it is worth exploring if you find your argparse configuration becomes difficult to maintain.

To learn more about the argparse library, visit https://docs.python.org/3/library/argparse.html.
主站蜘蛛池模板: 邻水| 区。| 柘荣县| 兴隆县| 望城县| 高雄县| 噶尔县| 两当县| 磴口县| 平乡县| 九龙城区| 东丽区| 长汀县| 昌邑市| 弋阳县| 广德县| 怀远县| 贵港市| 贵阳市| 海城市| 腾冲县| 六盘水市| 含山县| 沙田区| 陆丰市| 花莲县| 阳东县| 江孜县| 柳江县| 秦安县| 东莞市| 温泉县| 西乌珠穆沁旗| 天台县| 临西县| 雷山县| 平度市| 东丰县| 建昌县| 抚州市| 灵宝市|