Author: Notus(hehe_xiao@qq.com)
Create: 2019-02-12
Update: 2019-02-12
将python脚本命令行参数逆序打印输出
Python version: 3.7.1
代码如下(p176.py)
'''
反序打印命令行参数
@Author: Notus(hehe_xiao@qq.com)
@Create: 2019-02-12
@Update: 2019-02-12
'''
import sys
args = sys.argv[1:]
args.reverse()
print(', '.join(args))
运行情况
python .p176.py ab cd ff
ff, cd, ab