Bu hata ne anlama geliyor?Ne yapar: TypeError: 'str' ve 'list' nesnelerini birleştiremez mi?
TypeError: cannot concatenate 'str' and 'list' objects
İşte kod parçası:
for j in ('90.','52.62263.','26.5651.','10.8123.'):
if j == '90.':
z = ('0.')
elif j == '52.62263.':
z = ('0.', '72.', '144.', '216.', '288.')
for k in z:
exepath = os.path.join(exe file location here)
exepath = '"' + os.path.normpath(exepath) + '"'
cmd = [exepath + '-j' + str(j) + '-n' + str(z)]
process=Popen('echo ' + cmd, shell=True, stderr=STDOUT)
print process
Kodunuzu gönderir misiniz? –
anladı - benim cevabım şimdi sizin için çalışıyor. – Triptych
else == '52 .62263. ': <- python'da bir sözdizimi hatası – SilentGhost