python 爲main方法傳參

執行python腳本的時候,想給main方法傳入參數的例子python #!/usr/bin/env python # -*- coding: utf-8 -*- # @Author(s): xili # @Created: 2020/6/30 import sys if __name__ == '__main__': arg1 = sys.argv[1] arg2 = sys.
相關文章
相關標籤/搜索