0
我有一個列表,我將數字插入到當我嘗試添加數字時出現錯誤TypeError:不支持的操作數類型(s )爲+ =:'int'和'NoneType' 不確定爲什麼。這裏是我的代碼TypeError:不支持的操作數類型爲+ =:'int'和'NoneType'
smallWindow = Window()
smallList = smallWindow.size(3)
print smallList
position = 0
sum = 0
for arg in sys.argv[1:]:
smallList.pop(position)
smallList.insert(0, int(arg))
print smallList
print smallWindow.max(smallList)
position+=1
if position == 3:
position = 0
sum = 0
for number in smallList:
sum += number