Python Forum
fmt_directory_entry = "{counter:>02}. {director:<52} {avg}"
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
fmt_directory_entry = "{counter:>02}. {director:<52} {avg}"
#8
You can also use Unicode as fill sign.
print('{:\N{FACE WITH OPEN MOUTH VOMITING}^30}'.format('Corona'))
Alternative
"Corona".center(30, "\N{BEER MUG}")
https://docs.python.org/3/library/stdtyp...ng-methods

Another good documentation is https://pyformat.info/.
The f-strings are not explained there, but this is the same syntax as for format.
Almost dead, but too lazy to die: https://sourceserver.info
All humans together. We don't need politicians!
Reply


Messages In This Thread
RE: fmt_directory_entry = "{counter:>02}. {director:<52} {avg}" - by DeaD_EyE - Apr-09-2020, 08:22 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020