Run python script with some of the argument that are optional

后端 未结 4 850
慢半拍i
慢半拍i 2021-02-06 04:53

I have gone through the sys documentation, however there is something that is still unclear to me. I have looked for some similar question on stackoverflow, but I h

4条回答
  •  长情又很酷
    2021-02-06 05:29

    Your function "example" is just fine. The problem is that you're trying to read sysargs that aren't there. Try to check if they are empty (in the else-clause).

提交回复
热议问题