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

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.
主站蜘蛛池模板: 桦川县| 册亨县| 五常市| 黑龙江省| 繁峙县| 区。| 宁津县| 修武县| 土默特右旗| 德令哈市| 田林县| 图片| 镇原县| 蒙城县| 玉屏| 扎鲁特旗| 五华县| 平原县| 米易县| 嵩明县| 高州市| 杭州市| 如皋市| 南宫市| 桐庐县| 元朗区| 白玉县| 平湖市| 康乐县| 会昌县| 横山县| 南康市| 台南市| 北票市| 平和县| 宜都市| 鄂托克前旗| 邯郸市| 云阳县| 潮州市| 徐州市|