gpio setting

how to change mode pin ?
anyone can give me tutorial?
for python.

how to change mode pin ?

In general, the config-pin utility (which relies on cape-universal) is
the simplest way to configure BeagleBone pins:
https://github.com/cdsteinkuehler/beaglebone-universal-io

anyone can give me tutorial?
for python.

I maintain the Adafruit_BBIO Python library. Here's the page from the
Adafruit tutorial about GPIO pin modes:
https://learn.adafruit.com/setting-up-io-python-library-on-beaglebone-black/gpio

-drew