sys #常用库 2024-06-03 读入命令行参数123456789import sys# 获取命令行参数script_name = sys.argv[0]arguments = sys.argv[1:]# 打印脚本名称和参数print(f"Script Name: {script_name}")print(f"Arguments: {arguments}")