Unable to solve TypeError message in Python

后端 未结 2 1325
执笔经年
执笔经年 2021-01-26 06:48

I have been searching around to check why was it that at line 7 there was a TypeError that says that my arguments are not converted during string formatting but to avail.

2条回答
  •  清歌不尽
    2021-01-26 07:43

    sys.argv is automatically a list of strings. Typecast it using

    int(value) 
    

    when using it to use it as an integer.

提交回复
热议问题