Ciao a tutti,
mi chiedevo se e' possibile customizzare string in c-style aggiungendo dei
tipi.
Premessa:
Oramai le f-string dominano, ma le %-string si usano ancora in particolare
per il logging.
Nella fattispecie quello che vorrei fare e' aggiungere un mio token per la
formattazione, %D che se in
Reply to the Pietro Brunetti's message, wrote on 27/02/2020 at 12:11:
Non so se per te va bene, ma puoi provare.
len(list(entries))
Sì, grazie.
Gabriele.
___
Python mailing list
Python@lists.python.it
https://lists.python.it/mailman/listinfo/python
Non so se per te va bene, ma puoi provare.
len(list(entries))
___
Python mailing list
Python@lists.python.it
https://lists.python.it/mailman/listinfo/python
Buondì a tutti.
Sono poco esperto, perciò vi chiedo di modulare eventuali risposte
tenendo conto che, già come ampiamente dimostra la domanda in arrivo, le
mie competenze sono di livello estremamente basso.
>>> import os
>>>
>>> basepath='e:/dropbox/'
>>> entries = os.scandir(basepath)
>>> ent