Refined local grid

Hello, I now have a 1×1 rectangle and have generated the grid by following this method:

L = 0.01    
W = 0.01  
nx = 10    
ny = 10    
mesh = RectangleMesh(Point(0, 0), Point(L, W), nx, ny)

but I want to refine the grid (including the borders) in the areas outside the 0.9×0.9 range and inside the 1×1 range,I was hoping to get a sample code,Thank you all!

See: Bitbucket