Formatowanie konsoli Wyjście
Mam problem z poprawnym wyrównaniem tekstów w Pythonie. Próbowałem wszystkiego, co wiedziałem, ale wciąż ten sam rezultat i to jest bardzo denerwujące!
Oto, co dostaję w konsoli
Oto kod, który mam.
print " FileName\t\t\t\t\tStatus\t\tBinary Type\n"
for files in PASS:
log = subprocess.check_output(['dumpbin','/HEADERS',files])
if arch64 in log:
print" %s \t\t\t\tPASSED\t\t 64-bit \t\t " %files
elif arch32 in log:
print" %s \t\t\t\tPASSED\t\t 32-bit \t\t " %files
print"\n"
for files in FAILED:
print" %s \t\t\t\t FAILED \t\t " %files
print "\n\n