home | imprint | privacy

python tricks

useful knowledge

sabeiro

2026-09-07 Mon 00:00

Created: 2026-11-26 Thu 14:46

python

Some useful usage for python.

python_coding.jpg

Figure 1: python coding

attributes

I can access the methods of an object and run them

import os
dirL = dir(os)
for d in dirL:
    getattr(os,d)
postamble