命令行运行python脚本时传入参数的三种方式

xiaoxiao2021-02-28  21

在用ubuntu时,想给python脚本传参,有以下三种方法:

(1)python中的sys模块

(2)python中的argparse模块

(3)python中的tf.app.run

转载:https://blog.csdn.net/weixin_35653315/article/details/72886718

https://blog.csdn.net/weixin_35653315/article/details/72886718

转载请注明原文地址: https://www.6miu.com/read-2632672.html

最新回复(0)