Was bedeutet : TypeError: cannot concatenate 'str' und 'Liste' Objekte bedeuten?

Was hat dieser Fehler zu bedeuten?

TypeError: cannot concatenate 'str' und 'Liste' Objekte

Hier ist ein Teil des Codes:

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
  • Können Sie post-Codes?
  • habe es - meine Antwort für Sie funktioniert jetzt.
  • sonst == '52.62263.': <-- ist ein syntax-Fehler in python
InformationsquelleAutor | 2009-06-18
Schreibe einen Kommentar