![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Python学习笔记
Parisiten
这个世界不乏聪明的人
展开
-
argparse — Parser for command-line options, arguments and sub-commands
The argparse module makes it easy to write user-friendly command-line interfaces. The program defines what arguments it requires, and argparse will figure out how to parse those out of sys.argv. The a...转载 2018-11-09 11:10:51 · 224 阅读 · 0 评论 -
yaml + easydict 写 配置文件
yaml test.yaml文件: name: Tom Smith age: 37 spouse: name: Jane Smith age: 25 children: - name: Jimmy Smith age: 15 - name1: Jenny Smith age1: 12 python文件: import yaml,os #获取文件全路径 file...原创 2018-11-09 11:59:19 · 1436 阅读 · 0 评论