Spiega documentation

python tricks
useful knowledge

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)

Created: 2026-11-26 Thu 14:46