def main(argv):
input_file = ''
save_to = ''
try:
opts, args = getopt.getopt(argv, "hi:o:")
except getopt.GetoptError:
print('graph_builder.py -i <JSON inputfile> -o <output image>')
sys.exit(2)
for opt, arg in opts:
if opt == '-h':
print('graph_builder.py -i <JSON inputfile> -o <output image>')
sys.exit()
elif opt == '-i':
input_file = arg
elif opt == '-o':
save_to = arg
build_graph(input_file,save_to)
graph_builder_month.py 文件源码
python
阅读 21
收藏 0
点赞 0
评论 0
评论列表
文章目录