How to represent a region?

hello everyone
I’m a new one for the fenics project, I have a question about fenics:
The area I want to represent is [0, 2π]×[0, 2π],How to use fenics code to express it?

This depends on if you are using legacy Dolfin or DOLFINx.
For legacy dolfin, you can use:

from dolfin import RectangleMesh, Point
import numpy as np
Nx = 10
Ny = 5
mesh=RectangleMesh(Point(0.0,0.0), Point(2*np.pi, 2*np.pi), Nx, Ny) 

For dolfinx, the equivalent code would be

import dolfinx
import numpy as np
from mpi4py import MPI
Nx = 10
Ny = 5
mesh = dolfinx.mesh.create_rectangle(MPI.COMM_WORLD, [[0.,0.], [2*np.pi, 2*np.pi]], [Nx, Ny])

Please note that is is a very basic question, and you should consider reading either of the tutorials:
https://fenicsproject.org/tutorial/ (legacy dolfin)
or
The FEniCSx tutorial — FEniCSx tutorial (DOLFINx)

It 's done, thank you very much!