Consider the affine scheme $\mathbb{A}^2=(Spec \mathbb{C}[x,y],\mathcal{O})$ and the open subscheme $U=(U,\mathcal{O}|_U)$ where $U=Spec \mathbb{C}[x,y]\setminus\{(x,y)\}$. We have a natural inclusion $i:U\hookrightarrow \mathbb{A}^2$ where $i:U\to Spec\mathbb{C}[x,y]$ is just the inclusion and for all open $V\subset Spec\mathbb{C}[x,y]$ we have the map $$i^\#_V:\mathcal{O}(V)\to (i^*\mathcal{O}\mid_U)(V)=\mathcal{O}\mid_U(i^{-1}(V))=\mathcal{O}(V\cap U)$$ given by the restriction $res_{V,V\cap U}:\mathcal{O}(V)\to \mathcal{O}(V\cap U)$. I want to determine $i^\#(Spec\mathbb{C}[x,y])$, i.e. the map $$res_{Spec\mathbb{C}[x,y],U}:\mathcal{O}(Spec\mathbb{C}[x,y])\to \mathcal{O}(U)$$ Here is my approach: I know that $\mathcal{O}(U)\cong\mathbb{C}[x,y]$. This isomorphism is realised by noting that by definition of a sheaf $\mathcal{O}(U)$ can be identified with pairs of sections $(a,b)\in \mathcal{O}(D(x))\times \mathcal{O}(D(y))$ such that $a|_{D(xy)}=b|_{D(xy)}$ and this given an isomorphism $\mathcal{O}(U)\cong \mathbb{C}[x,y]\subset \mathcal{O}(D(xy))=\mathbb{C}[x,y,1/x,1/y]$.
In other words, the image of an element $s\in\mathcal{O}(U)$ under this isomorphism $\mathcal{O}(U)\cong\mathbb{C}[x,y]$ is $s|_{D(xy)}$.
So to see that $res_{Spec\mathbb{C}[x,y],U}$ is an isomorphism, we note that $x|_{D(xy)}=x\in \mathbb{C}[x,y]\subset \mathcal{O}(D(xy))$ and similarly for $y$, which proves the claim.
Now I feel like I'm doing way to much work for this. I would appreciate a quicker way of seeing this, that is still precise and uses just the definitions of an affine scheme (so no argument like "a polynomial function on $\mathbb{C}^2\setminus 0$ can be extend to a polynomial function on $\mathbb{C}^2$ or something like that).