def f(xmin,ymin,xmax,ymax):
a= str(xmin) +','+ str(ymin) +','+str(xmax) +','+ str(ymax)
return a
f(!shape.extent.xmin!, !shape.extent.ymin!, !shape.extent.xmax!, !shape.extent.ymax! )
==============两个字段相加===========
def f(a,b):
c= str(a) +"_BG_"+ str(b+1)
return c
f(!A!, !B! )