From bbabc0c53cb2f6a075b135aafc0f074f95edb4db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Thu, 27 Feb 2025 08:19:46 +0100 Subject: [PATCH] Datetime, Pygame --- README.md | 4 ++-- index.html | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 5e21337..e7cfac7 100644 --- a/README.md +++ b/README.md @@ -667,7 +667,7 @@ import zoneinfo, dateutil.tz = - # Ignores jumps if they share tzinfo object. = ± # Returned datetime can fall into missing hour. = * # Also ` = abs()`, ` = ± `. - = / # Also `, = divmod(, )`. + = / # Also `(, ) = divmod(, )`. ``` @@ -3062,7 +3062,7 @@ rect(, color, , width=0) # Also polygon(, color, po ### Sound ```python = pg.mixer.Sound() # WAV file or bytes/array of signed shorts. -.play/stop() # Also set_volume(), fadeout(msec). +.play/stop() # Also set_volume() and fadeout(msec). ``` ### Basic Mario Brothers Example diff --git a/index.html b/index.html index 4858257..50615d1 100644 --- a/index.html +++ b/index.html @@ -595,7 +595,7 @@ Point(x=1, y=2 <TD> = <DTa> - <DTa> # Ignores jumps if they share tzinfo object. <D/DT> = <D/DT> ± <TD> # Returned datetime can fall into missing hour. <TD> = <TD> * <float> # Also `<TD> = abs(<TD>)`, `<TD> = <TD> ± <TD>`. -<float> = <TD> / <TD> # Also `<int>, <TD> = divmod(<TD>, <TD>)`. +<float> = <TD> / <TD> # Also `(<int>, <TD>) = divmod(<TD>, <TD>)`.

#Arguments

Inside Function Call

func(<positional_args>)                           # func(0, 0)
@@ -2501,7 +2501,7 @@ rect(<Surf>, color, <Rect>, width=0
 <Surf> = <Font>.render(text, antialias, color)  # Background color can be specified at the end.
 

Sound

<Sound> = pg.mixer.Sound(<path/file/bytes>)     # WAV file or bytes/array of signed shorts.
-<Sound>.play/stop()                             # Also set_volume(<float>), fadeout(msec).
+<Sound>.play/stop()                             # Also set_volume(<float>) and fadeout(msec).
 

Basic Mario Brothers Example

import collections, dataclasses, enum, io, itertools as it, pygame as pg, urllib.request