@@ -11,7 +11,7 @@ msgid ""
1111msgstr ""
1212"Project-Id-Version : Python 3.12\n "
1313"Report-Msgid-Bugs-To : \n "
14- "POT-Creation-Date : 2024-10-04 14:53 +0000\n "
14+ "POT-Creation-Date : 2024-10-11 14:48 +0000\n "
1515"PO-Revision-Date : 2024-05-11 00:34+0000\n "
1616"Last-Translator : Rafael Fontenelle <rffontenelle@gmail.com>, 2024\n "
1717"Language-Team : Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n "
@@ -184,6 +184,26 @@ msgid ""
184184">>> repr((x, y, ('spam', 'eggs')))\n"
185185"\" (32.5, 40000, ('spam', 'eggs'))\" "
186186msgstr ""
187+ ">>> s = 'Witaj, świecie.'\n"
188+ ">>> str(s)\n"
189+ "'Witaj, świecie.'\n"
190+ ">>> repr(s)\n"
191+ "\" 'Witaj, świecie.'\" \n"
192+ ">>> str(1/7)\n"
193+ "'0.14285714285714285'\n"
194+ ">>> x = 10 * 3.25\n"
195+ ">>> y = 200 * 200\n"
196+ ">>> s = 'Wartość x to ' + repr(x) + ', i y to ' + repr(y) + '...'\n"
197+ ">>> print(s)\n"
198+ "Wartość x to 32.5, i y to 40000...\n"
199+ ">>> # repr() ciągu znaków dodaje cudzysłów i backslashe:\n"
200+ ">>> hello = 'witaj, świecie\\ n'\n"
201+ ">>> hellos = repr(hello)\n"
202+ ">>> print(hellos)\n"
203+ "'witaj, świecie\\ n'\n"
204+ ">>> # argumentem repr() może być dowolny obiekt Pythona:\n"
205+ ">>> repr((x, y, ('szynka', 'jajka')))\n"
206+ "\" (32.5, 40000, ('szynka', 'jajka'))\" "
187207
188208msgid ""
189209"The :mod:`string` module contains a :class:`~string.Template` class that "
@@ -224,6 +244,9 @@ msgid ""
224244">>> print(f'The value of pi is approximately {math.pi:.3f}.')\n"
225245"The value of pi is approximately 3.142."
226246msgstr ""
247+ ">>> import math\n"
248+ ">>> print(f'Wartość pi wynosi w przybliżeniu {math.pi:.3f}.')\n"
249+ "Wartość pi wynosi w przybliżeniu 3,142."
227250
228251msgid ""
229252"Passing an integer after the ``':'`` will cause that field to be a minimum "
@@ -242,6 +265,13 @@ msgid ""
242265"Jack ==> 4098\n"
243266"Dcab ==> 7678"
244267msgstr ""
268+ ">>> table = {'Sjoerd': 4127, 'Jack': 4098, 'Dcab': 7678}\n"
269+ ">>> for name, phone in table.items():\n"
270+ "... print(f'{name:10} ==> {phone:10d}')\n"
271+ "...\n"
272+ "Sjoerd ==> 4127\n"
273+ "Jack ==> 4098\n"
274+ "Dcab ==> 7678"
245275
246276msgid ""
247277"Other modifiers can be used to convert the value before it is formatted. ``'!"
@@ -259,6 +289,11 @@ msgid ""
259289">>> print(f'My hovercraft is full of {animals!r}.')\n"
260290"My hovercraft is full of 'eels'."
261291msgstr ""
292+ ">>> animals = 'węgorze'\n"
293+ ">>> print(f'Na moim poduszkowcu są {animals}.')\n"
294+ "Na moim poduszkowcu są węgorze.\n"
295+ ">>> print(f'Na moim poduszkowcu są {animals!r}.')\n"
296+ "Na moim poduszkowcu są 'węgorze'."
262297
263298msgid ""
264299"The ``=`` specifier can be used to expand an expression to the text of the "
@@ -351,6 +386,10 @@ msgid ""
351386"... 'Dcab: {0[Dcab]:d}'.format(table))\n"
352387"Jack: 4098; Sjoerd: 4127; Dcab: 8637678"
353388msgstr ""
389+ ">>> table = {'Sjoerd': 4127, 'Jack': 4098, 'Dcab': 8637678}\n"
390+ ">>> print('Jack: {0[Jack]:d}; Sjoerd: {0[Sjoerd]:d}; '\n"
391+ "... 'Dcab: {0[Dcab]:d}'.format(table))\n"
392+ "Jack: 4098; Sjoerd: 4127; Dcab: 8637678"
354393
355394msgid ""
356395"This could also be done by passing the ``table`` dictionary as keyword "
@@ -365,6 +404,10 @@ msgid ""
365404"format(**table))\n"
366405"Jack: 4098; Sjoerd: 4127; Dcab: 8637678"
367406msgstr ""
407+ ">>> table = {'Sjoerd': 4127, 'Jack': 4098, 'Dcab': 8637678}\n"
408+ ">>> print('Jack: {Jack:d}; Sjoerd: {Sjoerd:d}; Dcab: {Dcab:d}'."
409+ "format(**table))\n"
410+ "Jack: 4098; Sjoerd: 4127; Dcab: 8637678"
368411
369412msgid ""
370413"This is particularly useful in combination with the built-in function :func:"
@@ -477,6 +520,12 @@ msgid ""
477520">>> '3.14159265359'.zfill(5)\n"
478521"'3.14159265359'"
479522msgstr ""
523+ ">>> '12'.zfill(5)\n"
524+ "'00012'\n"
525+ ">>> '-3.14'.zfill(7)\n"
526+ "'-003.14'\n"
527+ ">>> '3.14159265359'.zfill(5)\n"
528+ "'3.14159265359'"
480529
481530msgid "Old string formatting"
482531msgstr "Stare formatowanie ciągów znaków"
0 commit comments