action='extend'优化了此问题,让多个list以extend的方式合并成一个list。 $ cat arg_action.py import argparse parser = argparse.ArgumentParser() ...
確定! 回上一頁