如题所述
<pre t="code" l="python">rec=0
def autoIncrement():
global rec
pStart = 1
pInterval = 1
if (rec == 0):
rec = pStart
else:
rec = rec + pInterval
return rec这是python代码,然后在字段里输入autoIncrement()即可
def autoIncrement():
global rec
pStart = 1
pInterval = 1
if (rec == 0):
rec = pStart
else:
rec = rec + pInterval
return rec这是python代码,然后在字段里输入autoIncrement()即可
温馨提示:答案为网友推荐,仅供参考