Cosa %ssignifica in Python? E cosa fa il seguente bit di codice?
Per esempio...
if len(sys.argv) < 2:
sys.exit('Usage: %s database-name' % sys.argv[0])
if not os.path.exists(sys.argv[1]):
sys.exit('ERROR: Database %s was not found!' % sys.argv[1])
%operatore è deprecato a favore delstr.formatmetodo più potente , vedere PEP-3101 .