Rock PI E v1.2 read GPIO resistance or voltage values

Hi. I’ve found similar tutorial for RPi but they’re not working with rock pi e.
what I’m trying to do is get photoresistors value by python script, connecting one leg to 3.3V, another to GND through 10kohm resistor, and same leg b4 resistor to some io pin to get the data (no matter if it’s voltage or resistance value) Is there any library and sample code to use?
thanks in advance.