This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| reading:2023:w41 [2023/10/14 12:51] – created pfm | reading:2023:w41 [2023/10/14 23:28] (current) – add python abc pfm | ||
|---|---|---|---|
| Line 7: | Line 7: | ||
| Według badań naukowców z Wojskowego Instytutu Higieny i Epidemiologii, | Według badań naukowców z Wojskowego Instytutu Higieny i Epidemiologii, | ||
| + | ===== Python features ===== | ||
| + | |||
| + | ==== Positional and keyword arguments ==== | ||
| + | |||
| + | Source: [[https:// | ||
| + | |||
| + | Python' | ||
| + | |||
| + | <code python> | ||
| + | def foo(pos1, pos2, /, param3, param4, *, key1, key2): | ||
| + | pass | ||
| + | </ | ||
| + | |||
| + | Forward slash marks the end of positional-only parameters and an asterisk marks the beginning of keyword-only arguments. | ||
| + | |||
| + | ==== Abstract Base Classes ==== | ||
| + | |||
| + | Source: [[https:// | ||
| + | |||
| + | Python '' | ||