python 解析命令行参数
1.创建参数对象
## 创建参数对象
parser=argparse.ArgumentParser(description="find homologous which conserve As Events")2.添加参数
parser.add_argument("-AtBlast",help="At blast out file")
parser.add_argument("-DtBlast",help="Dt blast out file")
parser.add_argument("-D5Blast",help="D5 blast out file")3.解析参数对象
## 解析参数对象
args=parser.parse_args()4.使用参数
注意事项
输出结果
参考
Last updated