Do you mean actual divisor corresponding to some rational function? Then look at the zeros and poles (ie. factor the numerator and denominator, this part might need some commutative algebra in general). Otherwise, as Kevin said divisors are just formal sums of points. They are book-keeping devices that are boring without object that they book-keep for (if this made sense).
I suggest you look at projective curves, where all the nice properties are more obvious (for compactness reasons). For canonical divisors explicitly factor a differential (again the class is canonical, there are many divisors depending on the choice of a differential). The only difference is that now you need the differential part (dx) and it will change your function as you go from chart to chart. Otherwise computing its divisor is basically the same.
This is the explicit approach taken in Miranda's Algebraic Curves and Riemann Surfaces. If you have good understanding (i don't) of manifolds and bundles you can take the tangent bundle approach.